jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r787996 - in /jackrabbit/trunk/jackrabbit-core/src/test: java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java repository/workspaces/workspace-init-test/workspace.xml
Date Wed, 24 Jun 2009 12:32:18 GMT
Author: mreutegg
Date: Wed Jun 24 12:32:18 2009
New Revision: 787996

URL: http://svn.apache.org/viewvc?rev=787996&view=rev
Log:
JCR-2085: test case (TCK) maintenance for JCR 2.0
- fix broken workspace-init-test with new security

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java
    jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/workspace-init-test/workspace.xml

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java?rev=787996&r1=787995&r2=787996&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/SlowQueryHandler.java
Wed Jun 24 12:32:18 2009
@@ -18,23 +18,14 @@
 
 import java.io.IOException;
 
-import javax.jcr.RepositoryException;
-import javax.jcr.query.InvalidQueryException;
-
-import org.apache.jackrabbit.core.query.AbstractQueryHandler;
-import org.apache.jackrabbit.core.query.ExecutableQuery;
-import org.apache.jackrabbit.core.state.NodeState;
 import org.apache.jackrabbit.core.NodeId;
-import org.apache.jackrabbit.core.SessionImpl;
-import org.apache.jackrabbit.core.ItemManager;
-import org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelTree;
 import org.apache.jackrabbit.uuid.UUID;
 
 /**
  * <code>SlowQueryHandler</code> implements a dummy query handler for testing
  * purpose.
  */
-public class SlowQueryHandler extends AbstractQueryHandler {
+public class SlowQueryHandler extends SearchIndex {
 
     protected void doInit() throws IOException {
         // sleep for 10 seconds then try to read from the item state manager
@@ -46,33 +37,6 @@
         }
         NodeId id = new NodeId(UUID.randomUUID());
         getContext().getItemStateManager().hasItemState(id);
-    }
-
-    public void addNode(NodeState node) throws RepositoryException, IOException {
-    }
-
-    public void deleteNode(NodeId id) throws IOException {
-    }
-
-    public void close() throws IOException {
-    }
-
-    public ExecutableQuery createExecutableQuery(SessionImpl session,
-                                                 ItemManager itemMgr, String statement,
-                                                 String language)
-            throws InvalidQueryException {
-        return null;
-    }
-
-    public ExecutableQuery createExecutableQuery(SessionImpl session,
-                                                 ItemManager itemMgr,
-                                                 QueryObjectModelTree qomTree)
-            throws InvalidQueryException {
-        return null;
-    }
-
-    public Iterable<NodeId> getWeaklyReferringNodes(NodeId id)
-            throws RepositoryException {
-        return null;
+        super.doInit();
     }
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/workspace-init-test/workspace.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/workspace-init-test/workspace.xml?rev=787996&r1=787995&r2=787996&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/workspace-init-test/workspace.xml
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/workspace-init-test/workspace.xml
Wed Jun 24 12:32:18 2009
@@ -33,6 +33,9 @@
   <!--
       Search index and the file system it uses.
   -->
-  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SlowQueryHandler"/>
+  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SlowQueryHandler">
+    <param name="path" value="${wsp.home}/index" />
+    <param name="directoryManagerClass" value="org.apache.jackrabbit.core.query.lucene.directory.RAMDirectoryManager"/>
+  </SearchIndex>
 </Workspace>
 



Mime
View raw message