You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by to...@apache.org on 2007/07/27 02:56:01 UTC
svn commit: r560045 -
/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java
Author: tonywu
Date: Thu Jul 26 17:56:00 2007
New Revision: 560045
URL: http://svn.apache.org/viewvc?view=rev&rev=560045
Log:
reset millisecond before regression test for HARMONY-4513
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java?view=diff&rev=560045&r1=560044&r2=560045
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/GregorianCalendarTest.java Thu Jul 26 17:56:00 2007
@@ -728,6 +728,9 @@
// Regression test for HARMONY-4513
gc = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
gc.set(1582, Calendar.OCTOBER, 15, 0, 0, 0);
+ // reset millisecond to zero in order to be the same time as cutover
+ gc.set(Calendar.MILLISECOND, 0);
+ assertEquals(0, gc.get(Calendar.MILLISECOND));
assertEquals(1582, gc.get(Calendar.YEAR));
assertEquals(Calendar.OCTOBER, gc.get(Calendar.MONTH));
assertEquals(15, gc.get(Calendar.DAY_OF_MONTH));