/**
* Return suite with all tests of the class.
*/
public static Test suite() {
// Use explicit ordering of fixtures until fix of DERBY-5988
BaseTestSuite s = new BaseTestSuite("datasourcetestsuite-embedded");
s.addTest(new DataSourceTest("testIsNotWrapperForPoolDataSource"));
s.addTest(new DataSourceTest("testIsNotWrapperForXADataSource"));
s.addTest(new DataSourceTest("testUnwrapConnectionPoolDataSource"));
s.addTest(new DataSourceTest("testIsWrapperForDataSource"));
s.addTest(new DataSourceTest("testIsNotWrapperForResultSet"));
s.addTest(new DataSourceTest("testUnwrapXADataSource"));
s.addTest(new DataSourceTest("testConnectionErrorEvent"));
s.addTest(new DataSourceTest("testUnwrapResultSet"));
s.addTest(new DataSourceTest("testUnwrapDataSource"));
s.addTest(new DataSourceTest("test_jdbc4_1"));
BaseTestSuite ns = new BaseTestSuite("datasourcetestsuite-net");
ns.addTest(new DataSourceTest("testIsNotWrapperForPoolDataSource"));
ns.addTest(new DataSourceTest("testIsNotWrapperForXADataSource"));
ns.addTest(new DataSourceTest("testUnwrapConnectionPoolDataSource"));
ns.addTest(new DataSourceTest("testIsWrapperForDataSource"));
ns.addTest(new DataSourceTest("testIsNotWrapperForResultSet"));
ns.addTest(new DataSourceTest("testUnwrapXADataSource"));
ns.addTest(new DataSourceTest("testConnectionErrorEvent"));
ns.addTest(new DataSourceTest("testUnwrapResultSet"));
ns.addTest(new DataSourceTest("testUnwrapDataSource"));
ns.addTest(new DataSourceTest("test_jdbc4_1"));
BaseTestSuite totalsuite = new BaseTestSuite("datasourcetest");
totalsuite.addTest(new CleanDatabaseTestSetup(s));
totalsuite.addTest(TestConfiguration.clientServerDecorator(
new CleanDatabaseTestSetup(ns)));
return totalsuite;
}