jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1486555 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java
Date Mon, 27 May 2013 10:01:05 GMT
Author: thomasm
Date: Mon May 27 10:01:05 2013
New Revision: 1486555

URL: http://svn.apache.org/r1486555
Log:
OAK-841 Indexing empty string fails with "there's already a child node with name ':index'"
(additional test case)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java?rev=1486555&r1=1486554&r2=1486555&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultipleIndicesTest.java
Mon May 27 10:01:05 2013
@@ -103,11 +103,18 @@ public class MultipleIndicesTest extends
         t.addChild("node-2").setProperty("pid", "");
         root.commit();
 
+        t = root.getTree("/");
+        t.addChild("node-3").setProperty("pid", ":");
+        root.commit();
+
         setTravesalFallback(false);
         assertQuery("select [jcr:path] from [nt:base] where [pid] = 'value'",
                 ImmutableList.of("/node-1"));
         assertQuery("select [jcr:path] from [nt:base] where [pid] = ''",
                 ImmutableList.of("/node-2"));
+        assertQuery("select [jcr:path] from [nt:base] where [pid] = ':'",
+                ImmutableList.of("/node-3"));
+        
         setTravesalFallback(true);
     }
 }



Mime
View raw message