jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1519621 - /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/DescendantSearchTest.java
Date Tue, 03 Sep 2013 09:46:34 GMT
Author: mduerig
Date: Tue Sep  3 09:46:34 2013
New Revision: 1519621

URL: http://svn.apache.org/r1519621
Log:
OAK-991: DescendantSearchTest fails with NamespaceException on Jackrabbit 2

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

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/DescendantSearchTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/DescendantSearchTest.java?rev=1519621&r1=1519620&r2=1519621&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/DescendantSearchTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/DescendantSearchTest.java
Tue Sep  3 09:46:34 2013
@@ -55,6 +55,13 @@ public class DescendantSearchTest extend
             session.save();
         }
 
+        try {
+            // Jackrabbit 2 doesn't have the oak namespace
+            String o = session.getNamespaceURI("oak");
+        } catch (RepositoryException e) {
+            session.setNamespacePrefix("oak", "http://jackrabbit.apache.org/oak/ns/1.0");
+        }
+
         IndexManager.createPropertyIndex(session, "testcount");
 
     }



Mime
View raw message