jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1483553 - /jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java
Date Thu, 16 May 2013 20:39:53 GMT
Author: alexparvulescu
Date: Thu May 16 20:39:53 2013
New Revision: 1483553

URL: http://svn.apache.org/r1483553
Log:
OAK-828 Lucene support for index aggregates
- failing test

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

Modified: jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java?rev=1483553&r1=1483552&r2=1483553&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/TextExtractionQueryTest.java
Thu May 16 20:39:53 2013
@@ -55,9 +55,11 @@ public class TextExtractionQueryTest ext
 
     private void assertFileContains(String name, String type,
             String... statements) throws Exception {
-        while (testRootNode.hasNode(nodeName1)) {
+        if (testRootNode.hasNode(nodeName1)) {
             testRootNode.getNode(nodeName1).remove();
         }
+        testRootNode.getSession().save();
+
         Node resource = testRootNode.addNode(nodeName1, NodeType.NT_RESOURCE);
         resource.setProperty(JcrConstants.JCR_MIMETYPE, type);
         InputStream stream = getClass().getResourceAsStream(name);



Mime
View raw message