jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r569387 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java
Date Fri, 24 Aug 2007 13:50:12 GMT
Author: reschke
Date: Fri Aug 24 06:50:11 2007
New Revision: 569387

URL: http://svn.apache.org/viewvc?rev=569387&view=rev
Log:
JCR-1088: de-couple WorkspaceRestoreTest from RestoreTest

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java?rev=569387&r1=569386&r2=569387&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/WorkspaceRestoreTest.java
Fri Aug 24 06:50:11 2007
@@ -38,9 +38,15 @@
  * @executeClass org.apache.jackrabbit.test.api.version.WorkspaceRestoreTest
  * @keywords versioning
  */
-public class WorkspaceRestoreTest extends RestoreTest {
+public class WorkspaceRestoreTest extends AbstractVersionTest {
 
     Session wSuperuser;
+
+    Version version;
+    Version version2;
+    Version rootVersion;
+
+    Node versionableNode2;
     Node wTestRoot;
     Node wVersionableNode;
     Node wVersionableNode2;
@@ -51,6 +57,18 @@
     protected void setUp() throws Exception {
         super.setUp();
 
+        version = versionableNode.checkin();
+        versionableNode.checkout();
+        version2 = versionableNode.checkin();
+        versionableNode.checkout();
+        rootVersion = versionableNode.getVersionHistory().getRootVersion();
+
+        // build a second versionable node below the testroot
+        try {
+            versionableNode2 = createVersionableNode(testRootNode, nodeName2, versionableNodeType);
+        } catch (RepositoryException e) {
+            fail("Failed to create a second versionable node: " + e.getMessage());
+        }
         try {
             wSuperuser = helper.getSuperuserSession(workspaceName);
         } catch (RepositoryException e) {
@@ -112,6 +130,7 @@
     protected void tearDown() throws Exception {
         try {
             // remove all versionable nodes below the test
+            versionableNode2.remove();
             wVersionableNode.remove();
             wVersionableNode2.remove();
             wTestRoot.save();



Mime
View raw message