jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1337245 - /jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java
Date Fri, 11 May 2012 16:12:14 GMT
Author: stefan
Date: Fri May 11 16:12:13 2012
New Revision: 1337245

URL: http://svn.apache.org/viewvc?rev=1337245&view=rev
Log:
OAK-12: Implement a test suite for the MicroKernel (WIP)

Modified:
    jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java

Modified: jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java?rev=1337245&r1=1337244&r2=1337245&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java
(original)
+++ jackrabbit/oak/trunk/oak-it/mk/src/main/java/org/apache/jackrabbit/mk/test/MicroKernelIT.java
Fri May 11 16:12:13 2012
@@ -614,6 +614,18 @@ public class MicroKernelIT extends Abstr
     }
 
     @Test
+    public void illegalMove() {
+        mk.commit("", "+\"/test/sub\":{}", null, "");
+        try {
+            // try to move /test to /test/sub/test
+            mk.commit("/", "> \"test\": \"/test/sub/test\"", null, "");
+            fail();
+        } catch (Exception e) {
+            // expected
+        }
+    }
+
+    @Test
     public void overwritingMove() {
         String head = mk.getHeadRevision();
 



Mime
View raw message