Code example for GregorianCalendar

Methods: getgetTimeZone

0
	/** 
	 * @tests java.util.GregorianCalendar#GregorianCalendar(int, int, int) 
	 */ 
	public void test_ConstructorIII() { 
		// Test for method java.util.GregorianCalendar(int, int, int) 
		GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13);
		assertEquals("Incorrect calendar constructed 1",
				1972, gc.get(Calendar.YEAR));
		assertTrue("Incorrect calendar constructed 2",
				gc.get(Calendar.MONTH) == Calendar.OCTOBER);
		assertEquals("Incorrect calendar constructed 3", 13, gc
				.get(Calendar.DAY_OF_MONTH));
		assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals(
				TimeZone.getDefault()));
	} 
 
	/** 
	 * @tests java.util.GregorianCalendar#GregorianCalendar(int, int, int, int, 
	 *        int) 
	 */ 
	public void test_ConstructorIIIII() {