jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1138398 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Date Wed, 22 Jun 2011 10:59:06 GMT
Author: mduerig
Date: Wed Jun 22 10:59:06 2011
New Revision: 1138398

URL: http://svn.apache.org/viewvc?rev=1138398&view=rev
Log:
spi2microkernel prototype (WIP)
test

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

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java?rev=1138398&r1=1138397&r2=1138398&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Wed Jun 22 10:59:06 2011
@@ -262,6 +262,28 @@ public class MicrokernelTest {
         }
     }
 
+    @Ignore
+    @Test
+    public void journalSetProperty2() {
+        MicroKernel mk = getMicroKernel();
+        String init = mk.getHeadRevision();
+
+        String head = mk.commit("/",
+                "+\"node\" : {\"prop\":\"foo\"}",
+                init);
+
+        head = mk.commit("/",
+                "^\"node/prop\":\"bar\"",
+                head);
+
+        String journal = mk.getJournal(head, head);
+        System.out.println(journal);
+
+        JsopTokenizer tokenizer = new JsopTokenizer(journal);
+        while (tokenizer.read() != JsopTokenizer.END) {
+            System.out.println(tokenizer.readString());
+        }
+    }
 
     //------------------------------------------< private >---
 



Mime
View raw message