jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1387647 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java
Date Wed, 19 Sep 2012 15:44:48 GMT
Author: alexparvulescu
Date: Wed Sep 19 15:44:47 2012
New Revision: 1387647

URL: http://svn.apache.org/viewvc?rev=1387647&view=rev
Log:
JCR-3429 Make query tests (more) independent

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java?rev=1387647&r1=1387646&r2=1387647&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/AbstractIndexingTest.java
Wed Sep 19 15:44:47 2012
@@ -20,6 +20,7 @@ import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.query.QueryManager;
+import javax.jcr.query.QueryResult;
 
 import org.apache.jackrabbit.core.TestHelper;
 import org.apache.jackrabbit.core.query.lucene.SearchIndex;
@@ -98,4 +99,28 @@ public class AbstractIndexingTest extend
         }
         return null;
     }
+
+    protected QueryResult executeQuery(String statement)
+            throws RepositoryException {
+        flushSearchIndex();
+        return super.executeQuery(statement);
+    }
+
+    protected void executeXPathQuery(String xpath, Node[] nodes)
+            throws RepositoryException {
+        flushSearchIndex();
+        super.executeXPathQuery(xpath, nodes);
+    }
+
+    protected void executeSQLQuery(String sql, Node[] nodes)
+            throws RepositoryException {
+        flushSearchIndex();
+        super.executeSQLQuery(sql, nodes);
+    }
+
+    protected void executeSQL2Query(String statement, Node[] nodes)
+            throws RepositoryException {
+        flushSearchIndex();
+        super.executeSQL2Query(statement, nodes);
+    }
 }



Mime
View raw message