jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1334998 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/AbstractVersionTest.java
Date Mon, 07 May 2012 13:01:18 GMT
Author: reschke
Date: Mon May  7 13:01:17 2012
New Revision: 1334998

URL: http://svn.apache.org/viewvc?rev=1334998&view=rev
Log:
JCR-3300: check for versioning support in test setup

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/AbstractVersionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/AbstractVersionTest.java?rev=1334998&r1=1334997&r2=1334998&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/AbstractVersionTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/AbstractVersionTest.java
Mon May  7 13:01:17 2012
@@ -23,6 +23,7 @@ import javax.jcr.nodetype.NodeTypeManage
 import javax.jcr.nodetype.NoSuchNodeTypeException;
 import javax.jcr.nodetype.NodeType;
 import javax.jcr.Node;
+import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
 import javax.jcr.version.VersionHistory;
 
@@ -43,6 +44,8 @@ public class AbstractVersionTest extends
     protected void setUp() throws Exception {
         super.setUp();
 
+        super.checkSupportedOption(Repository.OPTION_VERSIONING_SUPPORTED);
+
         NodeTypeManager ntMgr = superuser.getWorkspace().getNodeTypeManager();
 
         // assert that this repository support versioning



Mime
View raw message