jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r761676 - /jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java
Date Fri, 03 Apr 2009 13:52:25 GMT
Author: jukka
Date: Fri Apr  3 13:52:24 2009
New Revision: 761676

URL: http://svn.apache.org/viewvc?rev=761676&view=rev
Log:
JCRRMI-14: Integration tests for JCR-RMI

More TCK initialization. Only 286 test failures remaining. :-)

Modified:
    jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java

Modified: jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java
URL: http://svn.apache.org/viewvc/jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java?rev=761676&r1=761675&r2=761676&view=diff
==============================================================================
--- jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java
(original)
+++ jackrabbit/commons/jcr-rmi/trunk/it/src/test/java/org/apache/jackrabbit/rmi/it/RepositoryServer.java
Fri Apr  3 13:52:24 2009
@@ -37,6 +37,7 @@
 import javax.jcr.ValueFactory;
 
 import org.apache.jackrabbit.api.JackrabbitNodeTypeManager;
+import org.apache.jackrabbit.api.JackrabbitWorkspace;
 import org.apache.jackrabbit.core.RepositoryImpl;
 import org.apache.jackrabbit.core.config.RepositoryConfig;
 import org.apache.jackrabbit.rmi.client.LocalAdapterFactory;
@@ -109,8 +110,12 @@
 
     private static void prepareRepositoryForConformanceTests(Session session)
             throws RepositoryException, IOException {
-        JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
-            session.getWorkspace().getNodeTypeManager();
+        JackrabbitWorkspace workspace =
+            (JackrabbitWorkspace) session.getWorkspace();
+        workspace.createWorkspace("test");
+
+        JackrabbitNodeTypeManager manager =
+            (JackrabbitNodeTypeManager) workspace.getNodeTypeManager();
         if (!manager.hasNodeType("test:versionable")) {
             InputStream xml = RepositoryServer.class.getResourceAsStream(
                     "/test-nodetypes.xml");



Mime
View raw message