You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2008/07/29 17:14:26 UTC
svn commit: r680732 -
/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/GregorianCalendarTest.java
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);