jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1504438 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java
Date Thu, 18 Jul 2013 11:42:21 GMT
Author: thomasm
Date: Thu Jul 18 11:42:21 2013
New Revision: 1504438

URL: http://svn.apache.org/r1504438
Log:
OAK-825 MongoMK: show more info on test failures

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java?rev=1504438&r1=1504437&r2=1504438&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMKDiffTest.java
Thu Jul 18 11:42:21 2013
@@ -266,11 +266,11 @@ public class MongoMKDiffTest extends Abs
         String rev = mk.commit("/", sb.toString(), null, null);
         String jsop = mk.diff(baseRev, rev, "/", 0);
         for (int i = 0; i < MongoMK.MANY_CHILDREN_THRESHOLD * 2; i++) {
-            assertTrue(jsop.contains("+\"/node-" + i + "\""));
+            assertTrue(jsop, jsop.contains("+\"/node-" + i + "\""));
         }
         jsop = mk.diff(rev, baseRev, "/", 0);
         for (int i = 0; i < MongoMK.MANY_CHILDREN_THRESHOLD * 2; i++) {
-            assertTrue(jsop.contains("-\"/node-" + i + "\""));
+            assertTrue(jsop, jsop.contains("-\"/node-" + i + "\""));
         }
 
         if (onBranch) {
@@ -278,22 +278,22 @@ public class MongoMKDiffTest extends Abs
         }
         String rev2 = mk.commit("/", "+\"node-new\":{}", rev, null);
         jsop = mk.diff(rev, rev2, "/", 0);
-        assertTrue(jsop.contains("+\"/node-new\""));
+        assertTrue(jsop, jsop.contains("+\"/node-new\""));
 
         String rev3 = mk.commit("/", "^\"node-new/prop\":\"value\"", rev2, null);
         jsop = mk.diff(rev2, rev3, "/", 0);
-        assertTrue(jsop.contains("^\"/node-new\""));
+        assertTrue(jsop, jsop.contains("^\"/node-new\""));
 
         String rev4 = mk.commit("/", "+\"node-new/foo\":{}", rev3, null);
         jsop = mk.diff(rev3, rev4, "/", 0);
-        assertTrue(jsop.contains("^\"/node-new\""));
+        assertTrue(jsop, jsop.contains("^\"/node-new\""));
 
         String rev5 = mk.commit("/", "^\"node-new/foo/prop\":\"value\"", rev4, null);
         jsop = mk.diff(rev4, rev5, "/", 0);
-        assertTrue(jsop.contains("^\"/node-new\""));
+        assertTrue(jsop, jsop.contains("^\"/node-new\""));
 
         String rev6 = mk.commit("/", "-\"node-new/foo\"", rev5, null);
         jsop = mk.diff(rev5, rev6, "/", 0);
-        assertTrue(jsop.contains("^\"/node-new\""));
+        assertTrue(jsop, jsop.contains("^\"/node-new\""));
     }
 }
\ No newline at end of file



Mime
View raw message