You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2014/01/30 10:15:48 UTC

svn commit: r1562747 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java

Author: thomasm
Date: Thu Jan 30 09:15:48 2014
New Revision: 1562747

URL: http://svn.apache.org/r1562747
Log:
OAK-1301 Path conditions not respected in XPath query (fix test case)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java?rev=1562747&r1=1562746&r2=1562747&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexQueryTest.java Thu Jan 30 09:15:48 2014
@@ -185,7 +185,7 @@ public class TraversingIndexQueryTest ex
         // 'socialgraph_test_group' and isdescendantnode(a, '/home') /* xpath:
         // /jcr:root/home//*[id='socialgraph_test_group'] */
         assertQuery(
-                "/jcr:root/home//*[id='socialgraph_test_group']",
+                "/jcr:root/home//*[@id='socialgraph_test_group']",
                 "xpath",
                 ImmutableList
                         .of("/home/users/testing/socialgraph_test_user_4/social/relationships/friend/socialgraph_test_group"));
@@ -198,7 +198,7 @@ public class TraversingIndexQueryTest ex
         // /jcr:root/home//social/relationships//*[id='socialgraph_test_group']
         // */
         assertQuery(
-                "/jcr:root/home//social/relationships//*[id='socialgraph_test_group']",
+                "/jcr:root/home//social/relationships//*[@id='socialgraph_test_group']",
                 "xpath",
                 ImmutableList
                         .of("/home/users/testing/socialgraph_test_user_4/social/relationships/friend/socialgraph_test_group"));