jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r423894 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java
Date Thu, 20 Jul 2006 11:22:39 GMT
Author: tripod
Date: Thu Jul 20 04:22:39 2006
New Revision: 423894

URL: http://svn.apache.org/viewvc?rev=423894&view=rev
Log:
assertSame is not the same as assertEquals

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java?rev=423894&r1=423893&r2=423894&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java (original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/core/XATest.java Thu Jul
20 04:22:39 2006
@@ -866,8 +866,9 @@
         n.checkin();
 
         // assert: base versions must differ
-        assertNotSame("Base versions must differ",
-                n.getBaseVersion().getName(), nOther.getBaseVersion().getName());
+        if (n.getBaseVersion().getName().equals(nOther.getBaseVersion().getName())) {
+            fail("Base versions must differ");
+        }
 
         // assert: version must not be visible to other session
         try {
@@ -881,7 +882,7 @@
         utx.commit();
 
         // assert: base versions must be equal
-        assertSame("Base versions must be equal",
+        assertEquals("Base versions must be equal",
                 n.getBaseVersion().getName(), nOther.getBaseVersion().getName());
     }
 



Mime
View raw message