jackrabbit-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1138397&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=1138397&r1=1138396&r2=1138397&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:55:53 2011
@@ -239,6 +239,29 @@ public class MicrokernelTest {
         }
     }
 
+    @Ignore
+    @Test
+    public void journalSetProperty() {
+        MicroKernel mk = getMicroKernel();
+        String init = mk.getHeadRevision();
+
+        String head = mk.commit("/",
+                "+\"node\" : {\"prop\":42}",
+                init);
+
+        head = mk.commit("/",
+                "^\"node/prop\":21",
+                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