jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r552876 - /jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/
Date Tue, 03 Jul 2007 15:22:41 GMT
Author: angela
Date: Tue Jul  3 08:22:40 2007
New Revision: 552876

URL: http://svn.apache.org/viewvc?view=rev&rev=552876
Log:
- additional test for Node.refresh called on a moved node
- JCR-999  SPI: provide batch read functionality -> adjust test setup

Added:
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
  (with props)
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
  (with props)
Modified:
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCROverRMIRepositoryStub.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIOverRMIRepositoryStub.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RevertMoveTest.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/SPIServer.java
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/TestAll.java

Added: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java?view=auto&rev=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
(added)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
Tue Jul  3 08:22:40 2007
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.jcr2spi;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig;
+import org.apache.jackrabbit.jcr2spi.config.CacheBehaviour;
+import org.apache.jackrabbit.value.ValueFactoryImplEx;
+
+import javax.jcr.ValueFactory;
+import javax.jcr.RepositoryException;
+
+/**
+ * <code>AbstractRepositoryConfig</code>...
+ */
+public abstract class AbstractRepositoryConfig implements RepositoryConfig {
+
+    private static Logger log = LoggerFactory.getLogger(AbstractRepositoryConfig.class);
+
+    public ValueFactory getValueFactory() throws RepositoryException {
+        return ValueFactoryImplEx.getInstance();
+    }
+
+    public String getDefaultWorkspaceName() {
+        return null;
+    }
+
+    public CacheBehaviour getCacheBehaviour() {
+        return CacheBehaviour.INVALIDATE;
+    }
+}
\ No newline at end of file

Propchange: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractRepositoryConfig.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision url

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCROverRMIRepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCROverRMIRepositoryStub.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCROverRMIRepositoryStub.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCROverRMIRepositoryStub.java
Tue Jul  3 08:22:40 2007
@@ -17,18 +17,13 @@
 package org.apache.jackrabbit.jcr2spi;
 
 import org.apache.jackrabbit.test.RepositoryStubException;
-import org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl;
 import org.apache.jackrabbit.spi.RepositoryService;
 import org.apache.jackrabbit.spi.rmi.server.ServerRepositoryService;
 import org.apache.jackrabbit.spi.rmi.remote.RemoteRepositoryService;
 import org.apache.jackrabbit.spi.rmi.client.ClientRepositoryService;
-import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig;
-import org.apache.jackrabbit.jcr2spi.config.CacheBehaviour;
-import org.apache.jackrabbit.value.ValueFactoryImpl;
 
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
-import javax.jcr.ValueFactory;
 import java.util.Properties;
 import java.rmi.RemoteException;
 
@@ -37,7 +32,7 @@
  * initializes a Jackrabbit repository and wraps it with a SPI2JCR layer,
  * a SPI-RMI layer and a JCR2SPI layer.
  */
-public class JCR2SPI2JCROverRMIRepositoryStub extends DefaultRepositoryStub {
+public class JCR2SPI2JCROverRMIRepositoryStub extends JCR2SPI2JCRRepositoryStub {
 
     /**
      * The Jackrabbit repository.
@@ -60,28 +55,14 @@
      */
     public Repository getRepository() throws RepositoryStubException {
         if (repo == null) {
-            Repository jackrabbitRepo = super.getRepository();
-            RepositoryService spi2jcrRepoService = new RepositoryServiceImpl(jackrabbitRepo);
+            RepositoryService spi2jcrRepoService = super.getRepositoryService();
             try {
                 RemoteRepositoryService remoteRepoService = new ServerRepositoryService(spi2jcrRepoService);
                 final RepositoryService localRepoService = new ClientRepositoryService(remoteRepoService);
 
-                repo = RepositoryImpl.create(new RepositoryConfig() {
+                repo = RepositoryImpl.create(new AbstractRepositoryConfig() {
                     public RepositoryService getRepositoryService() {
                         return localRepoService;
-                    }
-
-                    public ValueFactory getValueFactory() {
-                        return ValueFactoryImpl.getInstance();
-                    }
-
-                    public String getDefaultWorkspaceName() {
-                        // not needed for SPI2JCR
-                        return null;
-                    }
-
-                    public CacheBehaviour getCacheBehaviour() {
-                        return CacheBehaviour.INVALIDATE;
                     }
                 });
             } catch (RepositoryException e) {

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java
Tue Jul  3 08:22:40 2007
@@ -18,14 +18,12 @@
 
 import org.apache.jackrabbit.test.RepositoryStubException;
 import org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl;
-import org.apache.jackrabbit.spi2jcr.ValueFactoryImpl;
+import org.apache.jackrabbit.spi2jcr.BatchReadConfig;
 import org.apache.jackrabbit.spi.RepositoryService;
-import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig;
-import org.apache.jackrabbit.jcr2spi.config.CacheBehaviour;
+import org.apache.jackrabbit.name.QName;
 
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
-import javax.jcr.ValueFactory;
 import java.util.Properties;
 
 /**
@@ -56,25 +54,11 @@
      */
     public Repository getRepository() throws RepositoryStubException {
         if (repo == null) {
-            Repository jackrabbitRepo = super.getRepository();
-            final RepositoryService repoService = new RepositoryServiceImpl(jackrabbitRepo);
+            final RepositoryService service = getRepositoryService();
             try {
-                repo = RepositoryImpl.create(new RepositoryConfig() {
+                repo = RepositoryImpl.create(new AbstractRepositoryConfig() {
                     public RepositoryService getRepositoryService() {
-                        return repoService;
-                    }
-
-                    public ValueFactory getValueFactory() {
-                        return ValueFactoryImpl.getInstance();
-                    }
-
-                    public String getDefaultWorkspaceName() {
-                        // not needed for SPI2JCR
-                        return null;
-                    }
-
-                    public CacheBehaviour getCacheBehaviour() {
-                        return CacheBehaviour.INVALIDATE;
+                        return service;
                     }
                 });
             } catch (RepositoryException e) {
@@ -84,5 +68,21 @@
             }
         }
         return repo;
+    }
+
+    /**
+     *
+     * @return
+     * @throws RepositoryStubException
+     */
+    public RepositoryService getRepositoryService() throws RepositoryStubException {
+        Repository jackrabbitRepo = super.getRepository();
+
+        // TODO: make configurable
+        BatchReadConfig brconfig = new BatchReadConfig();
+        brconfig.setDepth(QName.NT_FILE, BatchReadConfig.DEPTH_INFINITE);
+        brconfig.setDepth(QName.NT_RESOURCE, BatchReadConfig.DEPTH_INFINITE);
+
+        return new RepositoryServiceImpl(jackrabbitRepo, brconfig);
     }
 }

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIOverRMIRepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIOverRMIRepositoryStub.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIOverRMIRepositoryStub.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIOverRMIRepositoryStub.java
Tue Jul  3 08:22:40 2007
@@ -18,15 +18,12 @@
 import org.apache.jackrabbit.test.RepositoryStub;
 import org.apache.jackrabbit.test.RepositoryStubException;
 import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig;
-import org.apache.jackrabbit.jcr2spi.config.CacheBehaviour;
 import org.apache.jackrabbit.spi.RepositoryService;
 import org.apache.jackrabbit.spi.rmi.client.ClientRepositoryService;
 import org.apache.jackrabbit.spi.rmi.remote.RemoteRepositoryService;
-import org.apache.jackrabbit.spi.rmi.common.ValueFactoryImpl;
 import org.apache.log4j.PropertyConfigurator;
 
 import javax.jcr.Repository;
-import javax.jcr.ValueFactory;
 import java.util.Properties;
 import java.rmi.registry.LocateRegistry;
 import java.rmi.registry.Registry;
@@ -67,21 +64,9 @@
                 RemoteRepositoryService remoteService = (RemoteRepositoryService) reg.lookup(repName);
                 final RepositoryService rmiService = new ClientRepositoryService(remoteService);
 
-                RepositoryConfig config = new RepositoryConfig() {
+                RepositoryConfig config = new AbstractRepositoryConfig() {
                     public RepositoryService getRepositoryService() {
                         return rmiService;
-                    }
-
-                    public ValueFactory getValueFactory() {
-                        return ValueFactoryImpl.getInstance();
-                    }
-
-                    public String getDefaultWorkspaceName() {
-                        return null;
-                    }
-
-                    public CacheBehaviour getCacheBehaviour() {
-                        return CacheBehaviour.INVALIDATE;
                     }
                 };
 

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
Tue Jul  3 08:22:40 2007
@@ -18,12 +18,11 @@
 import org.apache.jackrabbit.test.RepositoryStub;
 import org.apache.jackrabbit.test.RepositoryStubException;
 import org.apache.jackrabbit.spi2dav.RepositoryServiceImpl;
-import org.apache.jackrabbit.spi2dav.IdFactoryImpl;
-import org.apache.jackrabbit.spi2dav.ValueFactoryImpl;
+import org.apache.jackrabbit.identifier.IdFactoryImpl;
 import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig;
-import org.apache.jackrabbit.jcr2spi.config.CacheBehaviour;
 import org.apache.jackrabbit.spi.RepositoryService;
 import org.apache.jackrabbit.spi.IdFactory;
+import org.apache.jackrabbit.value.ValueFactoryImplEx;
 import org.apache.log4j.PropertyConfigurator;
 
 import javax.jcr.Repository;
@@ -68,10 +67,10 @@
                 String url = environment.getProperty(PROP_REPOSITORY_URL);
 
                 final IdFactory idFactory = IdFactoryImpl.getInstance();
-                final ValueFactory vFactory = ValueFactoryImpl.getInstance();
+                final ValueFactory vFactory = ValueFactoryImplEx.getInstance();
                 final RepositoryServiceImpl webdavRepoService = new RepositoryServiceImpl(url,
idFactory, vFactory);
 
-                RepositoryConfig config = new RepositoryConfig() {
+                RepositoryConfig config = new AbstractRepositoryConfig() {
                     public RepositoryService getRepositoryService() {
                         return webdavRepoService;
                     }
@@ -83,10 +82,6 @@
                     public String getDefaultWorkspaceName() {
                         String name = environment.getProperty(PROP_WORKSPACE_NAME);
                         return name;
-                    }
-
-                    public CacheBehaviour getCacheBehaviour() {
-                        return CacheBehaviour.INVALIDATE;
                     }
                 };
 

Added: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java?view=auto&rev=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
(added)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
Tue Jul  3 08:22:40 2007
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.jcr2spi;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.apache.jackrabbit.test.AbstractJCRTest;
+import org.apache.jackrabbit.test.NotExecutableException;
+
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+import javax.jcr.InvalidItemStateException;
+
+/**
+ * <code>RefreshMovedTest</code>...
+ */
+public class RefreshMovedTest extends AbstractJCRTest {
+
+    private static Logger log = LoggerFactory.getLogger(RefreshMovedTest.class);
+
+    protected Node moveNode;
+    protected String srcPath;
+    protected String destinationPath;
+
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        // create parent node
+        Node srcParentNode = testRootNode.addNode(nodeName1, testNodeType);
+        // create node to be moved
+        moveNode = srcParentNode.addNode(nodeName2, testNodeType);
+        // create a node that will serve as new parent
+        Node destParentNode = testRootNode.addNode(nodeName3, testNodeType);
+        // save the new nodes
+        testRootNode.save();
+
+        srcPath = moveNode.getPath();
+        destinationPath = destParentNode.getPath() + "/" + nodeName2;
+    }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    /**
+     * Test if refresh(true) does not affect a moved node.
+     *
+     * @throws RepositoryException
+     */
+    public void testRefreshTrue() throws RepositoryException {
+        testRootNode.getSession().move(srcPath, destinationPath);
+        testRootNode.getSession().refresh(true);
+
+        assertTrue("Refresh with pending move operation must not remove the node at destination
path.", testRootNode.getSession().itemExists(destinationPath));
+        assertFalse("Refresh with pending move operation must not re-add the node at its
original position.", testRootNode.getSession().itemExists(srcPath));
+        assertFalse("Refresh with pending move operation must not re-add the node at its
original position.", srcPath.equals(moveNode.getPath()));
+    }
+
+    /**
+     * Test if refresh(false) affecting a node that has been moved by another
+     * session invalidates the node properly in termes of either moving it to
+     * the new destination or marking it 'removed'.
+     *
+     * @throws RepositoryException
+     */
+    public void testRefreshOtherSession() throws RepositoryException {
+        Session readSession = helper.getReadOnlySession();
+        Node anotherNode = (Node) readSession.getItem(srcPath);
+
+        // workspace move
+        testRootNode.getSession().getWorkspace().move(srcPath, destinationPath);
+
+        readSession.refresh(false);
+        try {
+            String p = anotherNode.getPath();
+            // unless InvalidItemStateException is thrown the node must have
+            // been 'moved' to its new position.
+            assertTrue("Upon refresh of a node moved by another session it must be moved
to the new destination (or removed).", p.equals(destinationPath));
+        } catch (InvalidItemStateException e) {
+            // ok as well.
+        }
+    }
+}
\ No newline at end of file

Propchange: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RefreshMovedTest.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision url

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RevertMoveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RevertMoveTest.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RevertMoveTest.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/RevertMoveTest.java
Tue Jul  3 08:22:40 2007
@@ -52,4 +52,20 @@
             // ok: works as expected. scope of 'refresh' is not complete
         }
     }
+
+    /**
+     * Test if reverting all transient changes moves a moved node back to its
+     * original position.
+     *
+     * @throws RepositoryException
+     */
+    public void testRevertMoveOperation() throws RepositoryException {
+        String srcPath = moveNode.getPath();
+        doMove(srcPath, destinationPath);
+
+        testRootNode.getSession().refresh(false);
+        assertFalse("Reverting the move operation must remove the node at destination path.",
testRootNode.getSession().itemExists(destinationPath));
+        assertTrue("Reverting the move operation must re-add the node at its original position.",
testRootNode.getSession().itemExists(srcPath));
+        assertTrue("Reverting the move operation must re-add the node at its original position.",
srcPath.equals(moveNode.getPath()));
+    }
 }

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/SPIServer.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/SPIServer.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/SPIServer.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/SPIServer.java
Tue Jul  3 08:22:40 2007
@@ -20,6 +20,7 @@
 import org.apache.jackrabbit.spi.rmi.remote.RemoteRepositoryService;
 import org.apache.jackrabbit.spi.rmi.server.ServerRepositoryService;
 import org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl;
+import org.apache.jackrabbit.spi2jcr.BatchReadConfig;
 import org.apache.log4j.PropertyConfigurator;
 
 import java.rmi.registry.LocateRegistry;
@@ -54,7 +55,8 @@
         repo = org.apache.jackrabbit.core.RepositoryImpl.create(config);
         System.out.println("Jackrabbit started");
         // wrap with spi2jcr
-        RepositoryService repoService = new RepositoryServiceImpl(repo);
+        // TODO: make BatchReadConfig configurable
+        RepositoryService repoService = new RepositoryServiceImpl(repo, new BatchReadConfig());
         System.out.println("Wrapped with SPI2JCR");
         // create spi server
         remoteService = new ServerRepositoryService(repoService);

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/TestAll.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/TestAll.java?view=diff&rev=552876&r1=552875&r2=552876
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/TestAll.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/TestAll.java
Tue Jul  3 08:22:40 2007
@@ -55,6 +55,7 @@
         // refresh
         suite.addTestSuite(RefreshFalseTest.class);
         suite.addTestSuite(RefreshTrueTest.class);
+        suite.addTestSuite(RefreshMovedTest.class);
 
         // remove
         suite.addTestSuite(RemoveNodeTest.class);



Mime
View raw message