jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1222097 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java
Date Thu, 22 Dec 2011 08:36:33 GMT
Author: thomasm
Date: Thu Dec 22 08:36:32 2011
New Revision: 1222097

URL: http://svn.apache.org/viewvc?rev=1222097&view=rev
Log:
Large child node list: additional test case.

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java?rev=1222097&r1=1222096&r2=1222097&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/large/LargeNodeTest.java
Thu Dec 22 08:36:32 2011
@@ -68,6 +68,23 @@ public class LargeNodeTest extends Multi
     }
 
     @Test
+    public void largeNodeListAndGetNodes() {
+        if (!isMemoryKernel(mk)) {
+            return;
+        }
+        int max = 90;
+        Assert.assertEquals("{\":childNodeCount\":0}", mk.getNodes("/:root/head/config",
head));
+        head = mk.commit("/:root/head/config", "^ \"maxMemoryChildren\":" + max, head, "");
+        Assert.assertEquals("{\"maxMemoryChildren\":"+max+",\":childNodeCount\":0}", mk.getNodes("/:root/head/config",
head));
+        head = mk.commit("/", "+ \"t\": {}", head, "");
+        for (int i = 0; i < 100; i++) {
+            head = mk.commit("/", "+ \"t/" + i + "\": {\"x\":" + i + "}\n", head, "");
+        }
+        Assert.assertTrue(mk.nodeExists("/t", head));
+        mk.getNodes("/t", head);
+    }
+
+    @Test
     public void veryLargeNodeList() {
         if (isMemoryKernel(mk)) {
             int max = 2000;



Mime
View raw message