use of org.apache.derbyTesting.junit.ServerSetup in project derby by apache.
the class _Suite method suite.
/**
* Returns the default set of compatibility tests, intended to be run
* as part of suites.All.
*
* @return A default suite of compatibility tests.
*/
public static Test suite() {
// run off of UNC paths (network drives).
if (suffersFromDerby5889()) {
String msg = ("tests.compatibility disabled on Windows " + "with UNC paths, see DERBY-5889");
println(msg);
return new BaseTestSuite(msg);
}
// from VersionCombinationConfigurator.getJarDirectoryOf
if (!TestConfiguration.loadingFromJars())
return new BaseTestSuite("Compatibility tests skipped becasue " + "they need to run from jars");
if (!Derby.hasClient() || !Derby.hasServer()) {
return new BaseTestSuite("Compatibility tests skipped because " + "client or server is missing");
}
BaseTestSuite suite = new BaseTestSuite();
addVersionCombinations(suite);
TestConfiguration config = TestConfiguration.getCurrent();
return new SecurityManagerSetup(new ServerSetup(suite, "localhost", config.getPort()), // to put on the classpath for the spawned process(es).
VersionCombinationConfigurator.class.getName().replaceAll("\\.", "/") + ".policy", true);
}
Aggregations