Code example for SimpleTimeZone

Methods: getID, getRawOffset, useDaylightTime

0
	 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String) 
	 */ 
	public void test_ConstructorILjava_lang_String() { 
		// Test for method java.util.SimpleTimeZone(int, java.lang.String) 
 
		SimpleTimeZone st = new SimpleTimeZone(1000, "TEST");
		assertEquals("Incorrect TZ constructed", "TEST", st.getID());
		assertTrue("Incorrect TZ constructed: " + "returned wrong offset", st
				.getRawOffset() == 1000);
		assertTrue("Incorrect TZ constructed" + "using daylight savings", !st
				.useDaylightTime());
	} 
 
	/** 
	 * @tests java.util.SimpleTimeZone#SimpleTimeZone(int, java.lang.String, 
	 *        int, int, int, int, int, int, int, int) 
	 */ 
	public void test_ConstructorILjava_lang_StringIIIIIIII() { 
		// Test for method java.util.SimpleTimeZone(int, java.lang.String, int, 
		// int, int, int, int, int, int, int) 
		SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER,