jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1489825 - /jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java
Date Wed, 05 Jun 2013 11:53:45 GMT
Author: jukka
Date: Wed Jun  5 11:53:45 2013
New Revision: 1489825

URL: http://svn.apache.org/r1489825
Log:
JCR-3598: Oak in Jackrabbit deployment packages

Force loading of the Derby driver for integration tests

Modified:
    jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java

Modified: jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java?rev=1489825&r1=1489824&r2=1489825&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java
(original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/test/java/org/apache/jackrabbit/j2ee/BackwardsCompatibilityIT.java
Wed Jun  5 11:53:45 2013
@@ -43,6 +43,7 @@ import junit.framework.TestCase;
 
 import org.apache.commons.io.FileUtils;
 import org.apache.commons.io.IOUtils;
+import org.apache.derby.jdbc.EmbeddedDriver;
 import org.apache.jackrabbit.core.RepositoryImpl;
 import org.apache.jackrabbit.core.SessionImpl;
 import org.apache.jackrabbit.core.config.RepositoryConfig;
@@ -63,6 +64,10 @@ public class BackwardsCompatibilityIT ex
     private static final Logger log =
         LoggerFactory.getLogger(BackwardsCompatibilityIT.class);
 
+    /** Force loading of the Derby JDBC driver also in Java 5 environments. */
+    @SuppressWarnings("unused")
+    private static final Class<?> driver = EmbeddedDriver.class;
+
     public void testBackwardsCompatibility() throws Exception {
         File target = new File("target/backwards-compatibility-test");
         FileUtils.deleteDirectory(target);



Mime
View raw message