Home
last modified time | relevance | path

Searched refs:gc2 (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); in testGetHour() local
36 gc2.setTime(now); in testGetHour()
38 assertTrue(gc2.get(Calendar.HOUR) == ((gc1.get(Calendar.HOUR) + 1) % 12)); in testGetHour()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java138 GregorianCalendar gc2 = new GregorianCalendar(AMERICA_CHICAGO); in test_ConstructorLjava_util_TimeZone() local
139 gc2.setTime(date); in test_ConstructorLjava_util_TimeZone()
142 gc1.get(Calendar.HOUR), ((gc2.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZone()
173 GregorianCalendar gc2 = new GregorianCalendar(AMERICA_NEW_YORK, Locale.JAPAN); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale() local
174 gc2.setTime(date); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
180 assertTrue("Locales not created correctly", gc1.equals(gc2) in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
274 GregorianCalendar gc2 = new GregorianCalendar(2000, 11, 6); in test_equalsLjava_lang_Object() local
277 assertTrue("Equality check failed", !gc1.equals(gc2)); in test_equalsLjava_lang_Object()
288 GregorianCalendar gc2 = new GregorianCalendar(1996, 1, 1); in test_getActualMaximumI() local
296 29, gc2.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI()
[all …]