jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meteata...@apache.org
Subject svn commit: r1437314 - /jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java
Date Wed, 23 Jan 2013 09:51:21 GMT
Author: meteatamel
Date: Wed Jan 23 09:51:21 2013
New Revision: 1437314

URL: http://svn.apache.org/viewvc?rev=1437314&view=rev
Log:
OAK-351 - Inconsistency issue when committing a new node under an old parent

Added the test case for the issue

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java?rev=1437314&r1=1437313&r2=1437314&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitAddTest.java
Wed Jan 23 09:51:21 2013
@@ -52,6 +52,19 @@ public class MongoMKCommitAddTest extend
     }
 
     @Test
+    public void addNodeWithNestedChildren2() throws Exception {
+        mk.commit("/", "+\"a\" : {}", null, null);
+        mk.commit("/a", "+\"b\" : {}", null, null);
+        mk.commit("/a/b", "+\"c\" : {}", null, null);
+        mk.commit("/a", "+\"d\" : {}", null, null);
+
+        assertTrue(mk.nodeExists("/a",null));
+        assertTrue(mk.nodeExists("/a/b",null));
+        assertTrue(mk.nodeExists("/a/b/c",null));
+        assertTrue(mk.nodeExists("/a/d", null));
+    }
+
+    @Test
     public void addNodeWithParanthesis() throws Exception {
         mk.commit("/", "+\"Test({0})\" : {}", null, null);
         String nodes = mk.getNodes("/Test({0})", null, 1, 0, -1, null);



Mime
View raw message