jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r771283 - in /jackrabbit/trunk: jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/ jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/
Date Mon, 04 May 2009 12:11:00 GMT
Author: reschke
Date: Mon May  4 12:10:59 2009
New Revision: 771283

URL: http://svn.apache.org/viewvc?rev=771283&view=rev
Log:
JCR-2085: move WorkspaceTest

Added:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceTest.java
      - copied, changed from r771273, jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/WorkspaceTest.java
Removed:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/WorkspaceTest.java
Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/TestAll.java
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/TestAll.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/TestAll.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/TestAll.java?rev=771283&r1=771282&r2=771283&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/TestAll.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/TestAll.java
Mon May  4 12:10:59 2009
@@ -27,7 +27,6 @@
         TestSuite suite = new TestSuite("javax.jcr tests");
 
         suite.addTestSuite(SessionRemoveItemTest.class);
-        suite.addTestSuite(WorkspaceTest.class);
 
         return suite;
     }

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/TestAll.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/TestAll.java?rev=771283&r1=771282&r2=771283&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/TestAll.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/TestAll.java
Mon May  4 12:10:59 2009
@@ -137,6 +137,10 @@
 
         // JCR 2.0
         
+        //// new Workspace features
+        
+        suite.addTestSuite(WorkspaceTest.class);
+        
         //// shareable nodes
         
         suite.addTestSuite(ShareableNodeTest.class);

Copied: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceTest.java
(from r771273, jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/WorkspaceTest.java)
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceTest.java?p2=jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceTest.java&p1=jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/WorkspaceTest.java&r1=771273&r2=771283&rev=771283&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/WorkspaceTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceTest.java
Mon May  4 12:10:59 2009
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.jackrabbit.api.jsr283;
+package org.apache.jackrabbit.test.api;
 
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
@@ -22,7 +22,6 @@
 import javax.jcr.Workspace;
 
 import org.apache.jackrabbit.test.AbstractJCRTest;
-import org.apache.jackrabbit.test.NotExecutableException;
 
 /**
  * <code>WorkspaceTest</code>...
@@ -34,12 +33,7 @@
     protected void setUp() throws Exception {
         super.setUp();
 
-        javax.jcr.Workspace wsp = superuser.getWorkspace();
-        if (wsp instanceof Workspace) {
-            workspace = (Workspace) wsp;
-        } else {
-            throw new NotExecutableException("JCR 2.0 Workspace expected.");
-        }
+        workspace = superuser.getWorkspace();
     }
 
     /**



Mime
View raw message