harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r518459 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
Date Thu, 15 Mar 2007 03:39:48 GMT
Author: ndbeyer
Date: Wed Mar 14 20:39:47 2007
New Revision: 518459

URL: http://svn.apache.org/viewvc?view=rev&rev=518459
Log:
Apply second patch for HARMONY-2959: [classlib][luni]GregorianCalendar.get(DAY_OF_YEAR) returns
incorrect value sometimes

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java?view=diff&rev=518459&r1=518458&r2=518459
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
Wed Mar 14 20:39:47 2007
@@ -659,14 +659,14 @@
 	public void test_getI() { 
         // Regression test for HARMONY-2959
         Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000")); 
-        GregorianCalendar gc = new GregorianCalendar(); 
+        GregorianCalendar gc = new GregorianCalendar(TimeZone.getTimeZone("GMT")); 
         gc.setGregorianChange(date); 
         gc.setTimeInMillis(Date.parse("Dec 24 00:00:01 GMT 2000")); 
         assertEquals(346, gc.get(Calendar.DAY_OF_YEAR)); 
         
         // Regression test for HARMONY-3003
         date = new Date(Date.parse("Feb 28 00:00:01 GMT 2000"));
-        gc = new GregorianCalendar();
+        gc = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
         gc.setGregorianChange(date);
         gc.setTimeInMillis(Date.parse("Dec 1 00:00:01 GMT 2000"));
         assertEquals(1, gc.get(Calendar.DAY_OF_MONTH));



Mime
View raw message