harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r680732 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java
Date Tue, 29 Jul 2008 15:14:26 GMT
Author: odeakin
Date: Tue Jul 29 08:14:24 2008
New Revision: 680732

URL: http://svn.apache.org/viewvc?rev=680732&view=rev
Log:
Apply patch for HARMONY-5818 ([classlib][util]GregorianCalendarTest: two test case results
depend on current date).

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java?rev=680732&r1=680731&r2=680732&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java
Tue Jul 29 08:14:24 2008
@@ -128,7 +128,7 @@
 	 */
 	public void test_ConstructorLjava_util_TimeZone() {
 		// Test for method java.util.GregorianCalendar(java.util.TimeZone)
-		Date date = new Date();
+		Date date = new Date(2008,1,1);
 		TimeZone.getDefault();
 		GregorianCalendar gc1 = new GregorianCalendar(TimeZone
 				.getTimeZone("EST"));
@@ -167,7 +167,7 @@
 	public void test_ConstructorLjava_util_TimeZoneLjava_util_Locale() {
 		// Test for method java.util.GregorianCalendar(java.util.TimeZone,
 		// java.util.Locale)
-		Date date = new Date();
+		Date date = new Date(2008,1,1);
 		TimeZone.getDefault();
 		GregorianCalendar gc1 = new GregorianCalendar(TimeZone
 				.getTimeZone("EST"), Locale.JAPAN);



Mime
View raw message