jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meteata...@apache.org
Subject svn commit: r1420936 - /jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitRemoveTest.java
Date Wed, 12 Dec 2012 19:58:27 GMT
Author: meteatamel
Date: Wed Dec 12 19:58:26 2012
New Revision: 1420936

URL: http://svn.apache.org/viewvc?rev=1420936&view=rev
Log:
Added test cases for OAK-507

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

Modified: jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitRemoveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitRemoveTest.java?rev=1420936&r1=1420935&r2=1420936&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitRemoveTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/test/java/org/apache/jackrabbit/mongomk/impl/MongoMKCommitRemoveTest.java
Wed Dec 12 19:58:26 2012
@@ -1,9 +1,11 @@
 package org.apache.jackrabbit.mongomk.impl;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 import org.apache.jackrabbit.mongomk.BaseMongoMicroKernelTest;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -31,4 +33,21 @@ public class MongoMKCommitRemoveTest ext
             fail("Exception expected");
         } catch (Exception expected) {}
     }
+
+    @Test
+    @Ignore("OAK-507") // FIXME
+    public void removeNodeTwice() throws Exception {
+        String base = mk.commit("", "+\"/a\":{}", null, null);
+        mk.commit("", "-\"/a\"", base, null);
+        assertTrue(mk.nodeExists("/a", base));
+        mk.commit("", "-\"/a\"", base, null);
+    }
+
+    @Test
+    public void removeAndAddNode() throws Exception {
+        String base = mk.commit("", "+\"/a\":{}", null, null);
+        mk.commit("", "-\"/a\"", base, null);
+        assertTrue(mk.nodeExists("/a", base));
+        mk.commit("", "+\"/a\":{}", base, null);
+    }
 }
\ No newline at end of file



Mime
View raw message