jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r578011 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java
Date Fri, 21 Sep 2007 08:01:19 GMT
Author: thomasm
Date: Fri Sep 21 01:01:18 2007
New Revision: 578011

URL: http://svn.apache.org/viewvc?rev=578011&view=rev
Log:
JCR-1138: Wrong test assertion (fails for MS SQL Server)

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java?rev=578011&r1=578010&r2=578011&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/data/PersistenceManagerIteratorTest.java
Fri Sep 21 01:01:18 2007
@@ -78,7 +78,7 @@
                 NodeId id = it.nextNodeId();
                 log("  " + id.toString());
                 if (after != null) {
-                    assertEquals(id.getUUID().compareTo(after.getUUID()), 1);
+                    assertFalse(id.getUUID().compareTo(after.getUUID()) == 0);
                 }
                 after = id;
             }
@@ -93,7 +93,7 @@
                 while (it.hasNext()) {
                     NodeId id = it.nextNodeId();
                     log("    " + id.toString());
-                    assertEquals(id.getUUID().compareTo(after.getUUID()), 1);
+                    assertFalse(id.getUUID().compareTo(after.getUUID()) == 0);
                     after = id;
                 }
             }
@@ -106,7 +106,7 @@
                 while (it.hasNext()) {
                     NodeId id = it.nextNodeId();
                     log("    " + id.toString());
-                    assertEquals(id.getUUID().compareTo(after.getUUID()), 1);
+                    assertFalse(id.getUUID().compareTo(after.getUUID()) == 0);
                     after = id;
                 }
             }



Mime
View raw message