jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r641319 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java
Date Wed, 26 Mar 2008 14:08:48 GMT
Author: mreutegg
Date: Wed Mar 26 07:08:42 2008
New Revision: 641319

URL: http://svn.apache.org/viewvc?rev=641319&view=rev
Log:
JCR-1463: Core: Failing version tests (testRestore....)
- do not use Calendar.compareTo()

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java?rev=641319&r1=641318&r2=641319&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImplTest.java
Wed Mar 26 07:08:42 2008
@@ -35,7 +35,7 @@
         for (int i = 0; i < 100; i++) {
             Calendar next = InternalVersionHistoryImpl.getCurrentTime();
             assertTrue("InternalVersionHistoryImpl.getCurrentTime() not monotonically increasing",
-                    last.compareTo(next) < 0);
+                    last.getTimeInMillis() < next.getTimeInMillis());
             last = next;
         }
     }



Mime
View raw message