jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1401651 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query: ast/FullTextTest.java ast/LikePatternTest.java index/TraversingIndexTest.java
Date Wed, 24 Oct 2012 12:37:59 GMT
Author: thomasm
Date: Wed Oct 24 12:37:58 2012
New Revision: 1401651

URL: http://svn.apache.org/viewvc?rev=1401651&view=rev
Log:
OAK-28 Query: remove unused imports, document program flow

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/FullTextTest.java
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/LikePatternTest.java
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/FullTextTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/FullTextTest.java?rev=1401651&r1=1401650&r2=1401651&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/FullTextTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/FullTextTest.java
Wed Oct 24 12:37:58 2012
@@ -23,7 +23,6 @@ import static org.junit.Assert.fail;
 
 import java.text.ParseException;
 
-import org.apache.jackrabbit.oak.query.ast.FullTextSearchImpl;
 import org.junit.Test;
 
 /**

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/LikePatternTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/LikePatternTest.java?rev=1401651&r1=1401650&r2=1401651&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/LikePatternTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/ast/LikePatternTest.java
Wed Oct 24 12:37:58 2012
@@ -21,7 +21,6 @@ package org.apache.jackrabbit.oak.query.
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.assertFalse;
-import org.apache.jackrabbit.oak.query.ast.ComparisonImpl;
 import org.junit.Test;
 
 /**

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexTest.java?rev=1401651&r1=1401650&r2=1401651&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/query/index/TraversingIndexTest.java
Wed Oct 24 12:37:58 2012
@@ -48,9 +48,19 @@ public class TraversingIndexTest {
                     int slash = key.indexOf('/');
                     String revision = key.substring(0, slash);
                     String path = key.substring(slash);
-                    return new KernelNodeState(mk, path, revision, cache);
+                    // this method is strictly called _after_ the cache is initialized,
+                    // when the fields are set
+                    return new KernelNodeState(getMicroKernel(), path, revision, getCache());
                 }
             });
+    
+    MicroKernel getMicroKernel() {
+        return mk;
+    }
+    
+    LoadingCache<String, KernelNodeState> getCache() {
+        return cache;
+    }
 
     @Test
     public void traverse() throws Exception {



Mime
View raw message