jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1522657 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
Date Thu, 12 Sep 2013 16:41:44 GMT
Author: alexparvulescu
Date: Thu Sep 12 16:41:44 2013
New Revision: 1522657

URL: http://svn.apache.org/r1522657
Log:
OAK-318 Excerpt support
 - added orderby because of intermitent failures (unstable result order on java 7)


Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java?rev=1522657&r1=1522656&r2=1522657&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
Thu Sep 12 16:41:44 2013
@@ -61,7 +61,7 @@ public class QueryFulltextTest extends A
         Row row;
         String s;
         
-        String xpath = "//*[jcr:contains(., 'hello')]/rep:excerpt(.)";
+        String xpath = "//*[jcr:contains(., 'hello')]/rep:excerpt(.) order by jcr:path descending";
         
         q = qm.createQuery(xpath, "xpath");
         it = q.execute().getRows();
@@ -75,7 +75,7 @@ public class QueryFulltextTest extends A
         assertTrue(s, s.indexOf("Hello World") >= 0);
         assertTrue(s, s.indexOf("Description") >= 0);
         
-        xpath = "//*[jcr:contains(., 'hello')]/rep:excerpt(.)";
+        xpath = "//*[jcr:contains(., 'hello')]/rep:excerpt(.) order by jcr:path descending";
 
         q = qm.createQuery(xpath, "xpath");
         it = q.execute().getRows();



Mime
View raw message