You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2012/11/19 14:08:00 UTC
svn commit: r1411160 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java
Author: kahatlen
Date: Mon Nov 19 13:08:00 2012
New Revision: 1411160
URL: http://svn.apache.org/viewvc?rev=1411160&view=rev
Log:
DERBY-5998: Replication tests fail on CDC platforms without optional JSSE package
Skip the replication tests if the optional package is not available.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java?rev=1411160&r1=1411159&r2=1411160&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationSuite.java Mon Nov 19 13:08:00 2012
@@ -48,6 +48,18 @@ public class ReplicationSuite extends Ba
TestSuite suite = new TestSuite("ReplicationSuite");
+ // DERBY-5998: The replication code uses javax.net.ServerSocketFactory
+ // to set up communication channels between the master and the slave.
+ // That class is only available in an optional part of the Foundation
+ // Profile API. Skip the replication tests if it is not available.
+ try {
+ Class.forName("javax.net.ServerSocketFactory");
+ } catch (ClassNotFoundException cnfe) {
+ println("Skipping replication tests since "
+ + "javax.net.ServerSocketFactory is not available");
+ return suite;
+ }
+
// The tests require both DriverManager and ClientDataSource. None
// of those classes are available in JSR-169, so only run the test
// on platforms that support JDBC3 and higher. The tests also require