Code example for TimeZone

Methods: setDefault

0
    } 
 
    protected void tearDown() throws Exception { 
        DateTimeUtils.setCurrentMillisSystem(); 
        DateTimeZone.setDefault(originalDateTimeZone);
        TimeZone.setDefault(originalTimeZone);
        Locale.setDefault(originalLocale);
        originalDateTimeZone = null;
        originalTimeZone = null;
        originalLocale = null;
    } 
 
    //----------------------------------------------------------------------- 
    public void testSubclassableConstructor() { 
        ISOPeriodFormat f = new ISOPeriodFormat() {
            // test constructor is protected 
        }; 
        assertNotNull(f);
    }