jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r813792 - in /jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify: pom.xml src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
Date Fri, 11 Sep 2009 12:12:54 GMT
Author: mreutegg
Date: Fri Sep 11 12:12:53 2009
New Revision: 813792

URL: http://svn.apache.org/viewvc?rev=813792&view=rev
Log:
- use recent jcr-2.0 jar
- add check for jcr:activities node

Modified:
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml?rev=813792&r1=813791&r2=813792&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml (original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml Fri Sep 11 12:12:53
2009
@@ -42,7 +42,7 @@
     <dependency>
       <groupId>javax.jcr</groupId>
       <artifactId>jcr</artifactId>
-      <version>2.0-pfd</version>
+      <version>2.0-b114</version>
       <scope>test</scope> 
     </dependency>
     <dependency>

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java?rev=813792&r1=813791&r2=813792&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
Fri Sep 11 12:12:53 2009
@@ -21,10 +21,16 @@
 import java.util.Arrays;
 import java.util.List;
 
+import javax.jcr.Session;
+
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertTrue;
+import org.apache.jackrabbit.JcrConstants;
 
-public class VerifyRepositoryTest extends AbstractRepositoryTest {
+public class VerifyRepositoryTest
+        extends AbstractRepositoryTest
+        implements JcrConstants {
 
     private static final File BASEDIR = new File("target", "dependency");
 
@@ -49,4 +55,11 @@
         doVerifyRepository(new File(BASEDIR, name));
     }
 
+    @Override
+    protected void verifyTestData(Session session) throws Exception {
+        // additionally verify that jcr:activities is there
+        assertTrue("jcr:activities missing",
+                session.getRootNode().hasNode(JCR_SYSTEM + "/jcr:activities"));
+        super.verifyTestData(session);
+    }
 }



Mime
View raw message