jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1466827 - /jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/ClusterTest.java
Date Thu, 11 Apr 2013 10:31:26 GMT
Author: thomasm
Date: Thu Apr 11 10:31:26 2013
New Revision: 1466827

URL: http://svn.apache.org/r1466827
Log:
OAK-619 MongoMK: test case for (in-) visible branch commits

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

Modified: jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/ClusterTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/ClusterTest.java?rev=1466827&r1=1466826&r2=1466827&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/ClusterTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/ClusterTest.java
Thu Apr 11 10:31:26 2013
@@ -23,6 +23,7 @@ import org.apache.jackrabbit.mk.api.Micr
 import org.apache.jackrabbit.mk.blobs.MemoryBlobStore;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import com.mongodb.DB;
@@ -63,6 +64,25 @@ public class ClusterTest {
     }    
     
     @Test
+    @Ignore
+    public void clusterBranchInVisibility() {
+        MongoMK mk1 = createMK(0);
+        mk1.commit("/", "+\"regular\": {}", null, null);
+        String b1 = mk1.branch(null);
+        String b2 = mk1.branch(null);
+        mk1.commit("/", "+\"branchVisible\": {}", b1, null);
+        mk1.commit("/", "+\"branchInvisible\": {}", b2, null);
+        mk1.merge(b1, null);
+        
+        MongoMK mk2 = createMK(0);
+        String nodes = mk2.getNodes("/", null, 0, 0, 100, null);
+        assertEquals("{\"branchVisible\":{},\"regular\":{},\":childNodeCount\":3}", nodes);
+        
+        mk1.dispose();
+        mk2.dispose();
+    }
+    
+    @Test
     public void clusterNodeInfo() {
         MemoryDocumentStore store = new MemoryDocumentStore();
         ClusterNodeInfo c1, c2, c3, c4;



Mime
View raw message