jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1570104 - in /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr: RepositoryTest.java cluster/ManyChildrenTest.java
Date Thu, 20 Feb 2014 08:23:52 GMT
Author: angela
Date: Thu Feb 20 08:23:51 2014
New Revision: 1570104

URL: http://svn.apache.org/r1570104
Log:
minor improvement: use constant for oak:Unstructured node type

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/cluster/ManyChildrenTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java?rev=1570104&r1=1570103&r2=1570104&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Thu Feb 20 08:23:51 2014
@@ -75,6 +75,7 @@ import org.apache.jackrabbit.commons.cnd
 import org.apache.jackrabbit.commons.jackrabbit.SimpleReferenceBinary;
 import org.apache.jackrabbit.core.data.RandomInputStream;
 import org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl;
+import org.apache.jackrabbit.oak.plugins.nodetype.NodeTypeConstants;
 import org.junit.Before;
 import org.junit.Ignore;
 import org.junit.Test;
@@ -1708,7 +1709,7 @@ public class RepositoryTest extends Abst
     public void renameNonOrderable() throws RepositoryException {
         Session session = getAdminSession();
         Node root = session.getRootNode();
-        Node parent = root.addNode("parent", "oak:Unstructured");
+        Node parent = root.addNode("parent", NodeTypeConstants.NT_OAK_UNSTRUCTURED);
         parent.addNode("fo");
         Node foo = parent.addNode("foo");
         session.save();

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/cluster/ManyChildrenTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/cluster/ManyChildrenTest.java?rev=1570104&r1=1570103&r2=1570104&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/cluster/ManyChildrenTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/cluster/ManyChildrenTest.java
Thu Feb 20 08:23:51 2014
@@ -24,6 +24,7 @@ import javax.jcr.SimpleCredentials;
 
 import org.apache.jackrabbit.oak.jcr.Jcr;
 import org.apache.jackrabbit.oak.jcr.NodeStoreFixture;
+import org.apache.jackrabbit.oak.plugins.nodetype.NodeTypeConstants;
 import org.apache.jackrabbit.oak.spi.state.NodeStore;
 import org.h2.util.Profiler;
 import org.junit.After;
@@ -85,7 +86,7 @@ public class ManyChildrenTest {
         int count = 10;
         
         Profiler prof = null;
-        String nodeType = "oak:Unstructured";
+        String nodeType = NodeTypeConstants.NT_OAK_UNSTRUCTURED;
         if (session.getRootNode().hasNode("many")) {
             session.getRootNode().getNode("many").remove();
             session.save();



Mime
View raw message