Code example for SimpleTimeZone

Methods: getRawOffset, setRawOffset

0
	 */ 
	public void test_setRawOffsetI() { 
		// Test for method void java.util.SimpleTimeZone.setRawOffset(int) 
 
		st1 = (SimpleTimeZone) TimeZone.getTimeZone("EST");
		int off = st1.getRawOffset();
		st1.setRawOffset(1000);
		boolean val = st1.getRawOffset() == 1000;
		st1.setRawOffset(off);
		assertTrue("Incorrect offset set", val);
	} 
 
	/** 
	 * @tests java.util.SimpleTimeZone#setStartRule(int, int, int) 
	 */ 
	public void test_setStartRuleIII() { 
		// Test for method void java.util.SimpleTimeZone.setStartRule(int, int, 
		// int) 
		SimpleTimeZone st = new SimpleTimeZone(1000, "Test_TZ");
		// Spec indicates that both end and start must be set or result is 
		// undefined