Code example for TimeZone

Methods: setDefault

0
    @Before 
    public void setUp() throws Exception 
    { 
        this.response = new CoreStatusResponse();
        defaultTimeZone = TimeZone.getDefault();
        TimeZone.setDefault(tz);
    } 
 
    @After 
    public void tearDown() throws Exception 
    { 
        TimeZone.setDefault(defaultTimeZone);
    } 
 
    @Test 
    public void testGetCoreStartupTimeAsDate() 
    { 
        assertNotNull("TimeZone not found", tz);
        response.setCoreStartupDate("2009-05-27");
        response.setCoreStartupTime("02:49:15");
Connect your IDE to all the code out there  Get Codota for Java