jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1133914 - in /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk: ConcurrentWriteTest.java HelloWorld.java
Date Thu, 09 Jun 2011 15:08:46 GMT
Author: thomasm
Date: Thu Jun  9 15:08:46 2011
New Revision: 1133914

URL: http://svn.apache.org/viewvc?rev=1133914&view=rev
Log:
Fix test cases.

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/ConcurrentWriteTest.java
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/ConcurrentWriteTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/ConcurrentWriteTest.java?rev=1133914&r1=1133913&r2=1133914&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/ConcurrentWriteTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/ConcurrentWriteTest.java
Thu Jun  9 15:08:46 2011
@@ -50,7 +50,7 @@ public class ConcurrentWriteTest extends
 
         String head = mk.getHeadRevision();
         if (mk.nodeExists("/test", head)) {
-            head = mk.commit("/", "-\"test\" : \"\"", head);
+            head = mk.commit("/", "-\"test\"", head);
         }
         head = mk.commit("/", "+\"test\" : {\"jcr:primaryType\":\"nt:unstructured\"}", head);
 

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java?rev=1133914&r1=1133913&r2=1133914&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/HelloWorld.java
Thu Jun  9 15:08:46 2011
@@ -41,11 +41,19 @@ public class HelloWorld {
             // head = mk.commit(null, "- \"/test\"", head);
             head = mk.commit("/", "-\"test\"", head);
         }
+
+        head = mk.commit("/", "+\"foo\" : {\"bar\":{\"x\":1}}", head);
+        String s = mk.getNodes("/foo/bar", 0, head);
+        System.out.println(s);
+
+        // head = mk.commit(null, "+\"/test\" : {\"name\":\"hello\"}", head);
+        head = mk.commit("/", "+\"test\" : {\"y\":\"true\", \"text\":[\"hello\", \"world\",
true]}", head);
+
         // head = mk.commit(null, "+\"/test\" : {\"name\":\"hello\"}", head);
-        head = mk.commit("/", "+\"test\" : {\"text\":[\"hello\", \"world\"]}", head);
+        head = mk.commit("/", "^\"test/x\" : false", head);
 
         // head = mk.getHeadRevision();
-        String s = mk.getNodes("/test", 0, head);
+        s = mk.getNodes("/test", 0, head);
         // {":name":"test","name":"hello",":childNodeCount":0}
 
         System.out.println(s);



Mime
View raw message