use of org.apache.derbyTesting.functionTests.suites.AllPackages in project derby by apache.
the class StandardTests method all.
/* All the above are pure Tests. To handle suites
* we will have to duplicate the .suite() structure starting at .suites.all!
*
* The following is WORK IN PROGRESS: NOT READY FOR USE! FIXME!
*/
public static Test all(String serverHost, int serverPort) throws Exception {
BaseTestSuite suite = new BaseTestSuite("All_" + serverHost + ":" + serverPort);
// All package tests
// This won't work as there are no 'testXXXX' methods
// in AllPackages. Must create a suite() following the pattern of suites.All suite().
// This is probably correct anyway as we presumably won't use all
// tests in the replication testing?
// Problem is we get a parallell structure which needs maintenance!
suite.addTest(// false: because adds clean/decorate below
TestConfiguration.existingServerSuite(// false: because adds clean/decorate below
AllPackages.class, // false: because adds clean/decorate below
false, serverHost, serverPort));
// Instead:
suite.addTest(// false: because adds clean/decorate below
TestConfiguration.existingServerSuite(// false: because adds clean/decorate below
allPackagesSuite(), // false: because adds clean/decorate below
false, serverHost, serverPort));
// Encrypted tests
suite.addTest(// false: because adds clean/decorate below
TestConfiguration.existingServerSuite(// false: because adds clean/decorate below
EncryptionSuite.class, // false: because adds clean/decorate below
false, serverHost, serverPort));
CleanDatabaseTestSetup cdts = new CleanDatabaseTestSetup(suite, // Use networkclient when running setUp/decorateSQL
true, serverHost, serverPort) {
public void decorateSQL(Statement s) throws SQLException {
// decorate(s);
}
};
return cdts;
}
Aggregations