jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1206207 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Date Fri, 25 Nov 2011 15:13:45 GMT
Author: mduerig
Date: Fri Nov 25 15:13:44 2011
New Revision: 1206207

URL: http://svn.apache.org/viewvc?rev=1206207&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
- add test case asserting target of move may not exist yet

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java?rev=1206207&r1=1206206&r2=1206207&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Fri Nov 25 15:13:44 2011
@@ -191,6 +191,20 @@ public class MicrokernelTest {
     }
 
     @Test
+    public void overwritingMove() {
+        MicroKernel mk = getMicroKernel();
+        String head = mk.getHeadRevision();
+
+        head = mk.commit("/", "+\"a\" : {} \r+\"b\" : {} \r", head, "");
+        try {
+            mk.commit("/", ">\"a\" : \"b\"  ", head, "");
+        }
+        catch (MicroKernelException e) {
+            // expected
+        }
+    }
+
+    @Test
     public void conflictingMove() {
         MicroKernel mk = getMicroKernel();
         String head = mk.getHeadRevision();



Mime
View raw message