Search in sources :

Example 1 with ServerSetup

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);
}
Also used : TestConfiguration(org.apache.derbyTesting.junit.TestConfiguration) ServerSetup(org.apache.derbyTesting.junit.ServerSetup) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite) SecurityManagerSetup(org.apache.derbyTesting.junit.SecurityManagerSetup)

Aggregations

BaseTestSuite (org.apache.derbyTesting.junit.BaseTestSuite)1 SecurityManagerSetup (org.apache.derbyTesting.junit.SecurityManagerSetup)1 ServerSetup (org.apache.derbyTesting.junit.ServerSetup)1 TestConfiguration (org.apache.derbyTesting.junit.TestConfiguration)1