harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r675514 - /harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java
Date Thu, 10 Jul 2008 11:21:57 GMT
Author: ayza
Date: Thu Jul 10 04:21:56 2008
New Revision: 675514

URL: http://svn.apache.org/viewvc?rev=675514&view=rev
Log:
Fix for HARMONY-5897 ([swing] Fixes a problem in SpinnerDataModelTest that occurs on specific
Dates) was committed

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java?rev=675514&r1=675513&r2=675514&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/SpinnerDateModelTest.java
Thu Jul 10 04:21:56 2008
@@ -60,7 +60,7 @@
 
     @SuppressWarnings("deprecation")
     public void testSpinnerDateModel() {
-        assertEquals(model.getDate().getDay(), now.getDay() + 1);
+        assertEquals(model.getDate().getDay(), (now.getDay() + 1) % 7);
         assertEquals(Calendar.DAY_OF_MONTH, model.getCalendarField());
         assertNull(model.getStart());
         assertNull(model.getEnd());



Mime
View raw message