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 testSingleton() throws Exception { 
        Class cls = NullConverter.class; 
        assertEquals(false, Modifier.isPublic(cls.getModifiers())); 
        assertEquals(false, Modifier.isProtected(cls.getModifiers())); 
        assertEquals(false, Modifier.isPrivate(cls.getModifiers())); 
         
        Constructor con = cls.getDeclaredConstructor((Class[]) null); 
Experience pair programming with AI  Get Codota for Java