jackrabbit-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1138385&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=1138385&r1=1138384&r2=1138385&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:32:38 2011
@@ -27,6 +27,7 @@ import org.json.simple.parser.JSONParser
 import org.json.simple.parser.ParseException;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
@@ -201,6 +202,23 @@ public class MicrokernelTest {
         assertTrue(multiIntProp instanceof JSONArray);
     }
 
+    @Ignore // fixme fix NPE in microkernel
+    @Test
+    public void journal() {
+        MicroKernel mk = getMicroKernel();
+        String init = mk.getHeadRevision();
+
+        String head = mk.commit("/",
+                "+\"{}node\" : {}",
+                init);
+
+        head = mk.commit("/",
+                "-\"{}node\"",
+                head);
+
+        System.out.println(mk.getJournal(init, head)); 
+    }
+
     //------------------------------------------< private >---
 
     private MicroKernel getMicroKernel() {



Mime
View raw message