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;
    } 
 
    //----------------------------------------------------------------------- 
    /** 
     * Test constructor () 
     */ 
    public void testZERO() throws Throwable { 
        Duration test = Duration.ZERO;
        assertEquals(0, test.getMillis());
    }