jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1515581 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
Date Mon, 19 Aug 2013 19:59:20 GMT
Author: mreutegg
Date: Mon Aug 19 19:59:19 2013
New Revision: 1515581

URL: http://svn.apache.org/r1515581
Log:
OAK-962: RootFuzzIT fails on MongoMK with seed -1091889749
- yet another test case (currently ignored)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java?rev=1515581&r1=1515580&r2=1515581&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/ManyChildrenIT.java
Mon Aug 19 19:59:19 2013
@@ -23,6 +23,7 @@ import javax.jcr.Node;
 import javax.jcr.NodeIterator;
 import javax.jcr.Session;
 
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -57,4 +58,24 @@ public class ManyChildrenIT extends Abst
         session2.logout();
     }
 
+    @Ignore("OAK-962")
+    @Test
+    public void addRemoveNodes() throws Exception {
+        int numNodes = 101;
+        Session writer = getAdminSession();
+        Node test = writer.getRootNode().addNode("test", "nt:unstructured");
+        for (int i = 0; i < numNodes; i++) {
+            test.addNode("node-" + i, "nt:unstructured");
+        }
+        writer.save();
+        for (int i = 0; i < numNodes; i++) {
+            if (i % 2 == 0) {
+                test.getNode("node-" + i).remove();
+            }
+        }
+        writer.save();
+        test.addNode("node-x");
+        writer.save();
+        assertTrue(test.hasNode("node-x"));
+    }
 }



Mime
View raw message