jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1520083 - in /jackrabbit/oak/trunk/oak-jcr: pom.xml src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java
Date Wed, 04 Sep 2013 17:51:49 GMT
Author: alexparvulescu
Date: Wed Sep  4 17:51:48 2013
New Revision: 1520083

URL: http://svn.apache.org/r1520083
Log:
OAK-1000 Queries on node name fail if the name starts with a number
 - failing test

Modified:
    jackrabbit/oak/trunk/oak-jcr/pom.xml
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/pom.xml?rev=1520083&r1=1520082&r2=1520083&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/pom.xml (original)
+++ jackrabbit/oak/trunk/oak-jcr/pom.xml Wed Sep  4 17:51:48 2013
@@ -184,6 +184,7 @@
       org.apache.jackrabbit.core.query.ShareableNodeTest#testPathConstraint             
            <!-- OAK-118 -->
       org.apache.jackrabbit.core.observation.ShareableNodesTest#testAddShare            
            <!-- OAK-118 workspace support needed -->
       org.apache.jackrabbit.core.observation.ShareableNodesTest#testRemoveShare         
            <!-- OAK-118 workspace support needed -->
+      org.apache.jackrabbit.oak.jcr.query.QueryTest#fnNameEncoding                      
            <!-- OAK-1000 -->
 
       <!-- Node Types -->
       org.apache.jackrabbit.oak.jcr.nodetype.NodeDefinitionTest#testRootType            
            <!-- OAK-901 -->

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java?rev=1520083&r1=1520082&r2=1520083&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryTest.java
Wed Sep  4 17:51:48 2013
@@ -45,6 +45,7 @@ import javax.jcr.query.RowIterator;
 import org.apache.jackrabbit.commons.JcrUtils;
 import org.apache.jackrabbit.oak.jcr.AbstractRepositoryTest;
 import org.apache.jackrabbit.oak.jcr.NodeStoreFixture;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
@@ -292,4 +293,22 @@ public class QueryTest extends AbstractR
         q.execute();
     }
 
+    @SuppressWarnings("deprecation")
+    @Test
+    @Ignore
+    public void fnNameEncoding() throws Exception {
+        Session session = getAdminSession();
+        session.getRootNode().addNode("123456_test_name");
+        session.save();
+
+        QueryManager qm = session.getWorkspace().getQueryManager();
+        Query q;
+
+        q = qm.createQuery("//*[jcr:like(fn:name(), '%123456%')]", Query.XPATH);
+        assertEquals("/123456_test_name", getPaths(q));
+
+        q = qm.createQuery("//*[fn:name() = '123456_test_name']", Query.XPATH);
+        assertEquals("/123456_test_name", getPaths(q));
+    }
+
 }



Mime
View raw message