Hi,
Attached is a patch that will cause test suites run with the property 'framework=DerbyNet' to be skipped if the IBM Universal JDBC Driver is not available.
Currently the only suites run like that are the *derbynetmats suites.
Reason for this skipping is so folks that folks not running with networkserver get a graceful exit when running derbyall rather than failing tests.
Note also, that this addresses the situation where derbynet.jar is in the classpath but db2jcc*.jar is not - the suites were already skipped when derbynet.jar was not in the classpath.
A final note: this does not affect running individual tests. When running individual tests, it is assumed you *know* the implication of running with framework=DerbyNet is that you need derbynet.jar, db2jcc.jar, and db2jcc_license_c.jar in your classpath as described in the testing readme (trunk/java/testing/README.htm).
Myrna
Index: java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
===================================================================
--- java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
(revision 125019)
+++ java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
(working copy)
@@ -967,6 +967,15 @@
driverNotFound = true;
result = true;
}
+
+ try {
+ Class.forName("com.ibm.db2.jcc.DB2Driver");
+ } catch (ClassNotFoundException cnfe) {
+ driverNotFound = true;
+ result = true;
+ }
+
+
}
}
