jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1531886 - in /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark: ReadPropertyTest.java TransientManyChildNodesTest.java
Date Mon, 14 Oct 2013 13:17:58 GMT
Author: thomasm
Date: Mon Oct 14 13:17:57 2013
New Revision: 1531886

URL: http://svn.apache.org/r1531886
Log:
OAK-641: Improved benchmark tooling - use a different node name each time

Modified:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadPropertyTest.java
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/TransientManyChildNodesTest.java

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadPropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadPropertyTest.java?rev=1531886&r1=1531885&r2=1531886&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadPropertyTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ReadPropertyTest.java
Mon Oct 14 13:17:57 2013
@@ -34,7 +34,7 @@ public class ReadPropertyTest extends Ab
     protected void beforeSuite() throws Exception {
         session = getRepository().login(getCredentials());
         root = session.getRootNode().addNode(
-                getClass().getSimpleName(), "nt:unstructured");
+                getClass().getSimpleName() + TEST_ID, "nt:unstructured");
         root.setProperty("property", "value");
         session.save();
     }

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/TransientManyChildNodesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/TransientManyChildNodesTest.java?rev=1531886&r1=1531885&r2=1531886&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/TransientManyChildNodesTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/TransientManyChildNodesTest.java
Mon Oct 14 13:17:57 2013
@@ -27,6 +27,8 @@ import javax.jcr.Session;
  */
 public class TransientManyChildNodesTest extends AbstractTest {
 
+    protected static final String ROOT_NODE_NAME = "test" + TEST_ID;
+    
     private static final int CHILD_COUNT = 10 * 1000;
 
     private static final int ITERATIONS = 10;
@@ -38,7 +40,7 @@ public class TransientManyChildNodesTest
     @Override
     public void beforeSuite() throws RepositoryException {
         session = getRepository().login(getCredentials());
-        node = session.getRootNode().addNode("testnode", "nt:unstructured");
+        node = session.getRootNode().addNode(ROOT_NODE_NAME, "nt:unstructured");
         for (int i = 0; i < CHILD_COUNT; i++) {
             node.addNode("node" + i, "nt:unstructured");
         }
@@ -61,7 +63,7 @@ public class TransientManyChildNodesTest
 
     @Override
     public void afterSuite() throws RepositoryException {
-        session.getRootNode().getNode("testnode").remove();
+        session.getRootNode().getNode(ROOT_NODE_NAME).remove();
         session.save();
         session.logout();
     }



Mime
View raw message