This file now requires Ant 1.4.1. 2002-04-18
- $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.25 2002/07/23 03:59:54 barry Exp $
+ $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.26 2002/07/30 11:38:13 davec Exp $
-->
-
+
import junit.framework.TestSuite;
import junit.framework.TestCase;
+import junit.framework.Test;
import org.postgresql.test.jdbc2.*;
import java.sql.*;
+import java.lang.reflect.Method;
/*
* Executes all known tests for JDBC2 and includes some utility methods.
suite.addTestSuite( UpdateableResultTest.class );
suite.addTestSuite( CallableStmtTest.class );
+
+ // try to load the optional test classes
+ try {
+ Class cls = Class.forName("org.postgresql.test.jdbc2.optional.OptionalTestSuite");
+ Method meth = cls.getMethod("suite", new Class[0]);
+ suite.addTest((Test)meth.invoke(null, new Object[0]));
+ } catch (Exception e) {
+ System.err.println("Excluding JDBC 2 Optional Package (DataSource) tests");
+ }
+
// That's all folks
return suite;
}