Search in sources :

Example 86 with BaseTestSuite

use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.

the class ShutdownSlaveDb method suite.

public static Test suite() throws Exception {
    System.out.println("**** ShutdownSlaveDb.suite()");
    System.out.println("'ShutdownSlaveSDb' can not be run outside the 'ReplicationRun' framework.");
    setEnv();
    BaseTestSuite suite = new BaseTestSuite("ShutdownSlaveDb");
    suite.addTest(ShutdownSlaveDb.suite(masterServerHost, masterServerPort));
    return (Test) suite;
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite)

Example 87 with BaseTestSuite

use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.

the class ShutdownSlaveServer method suite.

public static Test suite() throws Exception {
    System.out.println("**** ShutdownSlaveServer.suite()");
    System.out.println("'ShutdownSlaveServer' can not be run outside the 'ReplicationRun' framework.");
    setEnv();
    BaseTestSuite suite = new BaseTestSuite("ShutdownSlaveServer");
    suite.addTest(ShutdownSlaveServer.suite(masterServerHost, masterServerPort));
    return (Test) suite;
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite)

Example 88 with BaseTestSuite

use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.

the class TestPreStartedMaster method suite.

public static Test suite() throws Exception {
    System.out.println("**** TestPreStartedMaster.suite()");
    initEnvironment();
    // String masterHostName = System.getProperty("test.serverHost", "localhost");
    // int masterPortNo = Integer.parseInt(System.getProperty("test.serverPort", "1527"));
    BaseTestSuite suite = new BaseTestSuite("TestPreStartedMaster");
    suite.addTest(TestPreStartedMaster.suite(masterServerHost, masterServerPort));
    System.out.println("*** Done suite.addTest(TestPreStartedMaster.suite())");
    return (Test) suite;
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite)

Example 89 with BaseTestSuite

use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.

the class TestPreStartedMasterServer method suite.

public static Test suite() throws Exception {
    System.out.println("**** TestPreStartedMasterServer.suite()");
    initEnvironment();
    // String masterHostName = System.getProperty("test.serverHost", "localhost");
    // int masterPortNo = Integer.parseInt(System.getProperty("test.serverPort", "1527"));
    BaseTestSuite suite = new BaseTestSuite("TestPreStartedMasterServer");
    suite.addTest(TestPreStartedMasterServer.suite(masterServerHost, masterServerPort));
    System.out.println("*** Done suite.addTest(TestPreStartedMasterServer.suite())");
    return (Test) suite;
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite)

Example 90 with BaseTestSuite

use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.

the class TestPreStartedSlave method suite.

public static Test suite() throws Exception {
    System.out.println("**** TestPreStartedSlave.suite()");
    initEnvironment();
    // String masterHostName = System.getProperty("test.serverHost", "localhost");
    // int masterPortNo = Integer.parseInt(System.getProperty("test.serverPort", "1527"));
    BaseTestSuite suite = new BaseTestSuite("TestPreStartedSlave");
    suite.addTest(TestPreStartedSlave.suite(slaveServerHost, slaveServerPort));
    System.out.println("*** Done suite.addTest(TestPreStartedSlave.suite())");
    return (Test) suite;
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite)

Aggregations

BaseTestSuite (org.apache.derbyTesting.junit.BaseTestSuite)476 Test (junit.framework.Test)136 CleanDatabaseTestSetup (org.apache.derbyTesting.junit.CleanDatabaseTestSetup)118 Statement (java.sql.Statement)81 PreparedStatement (java.sql.PreparedStatement)68 SupportFilesSetup (org.apache.derbyTesting.junit.SupportFilesSetup)49 Properties (java.util.Properties)43 SystemPropertyTestSetup (org.apache.derbyTesting.junit.SystemPropertyTestSetup)34 CallableStatement (java.sql.CallableStatement)19 Connection (java.sql.Connection)14 SecurityManagerSetup (org.apache.derbyTesting.junit.SecurityManagerSetup)13 DatabasePropertyTestSetup (org.apache.derbyTesting.junit.DatabasePropertyTestSetup)11 TestSetup (junit.extensions.TestSetup)10 SQLException (java.sql.SQLException)7 LocaleTestSetup (org.apache.derbyTesting.junit.LocaleTestSetup)7 Method (java.lang.reflect.Method)5 Locale (java.util.Locale)5 BaseJDBCTestSetup (org.apache.derbyTesting.junit.BaseJDBCTestSetup)4 NetworkServerTestSetup (org.apache.derbyTesting.junit.NetworkServerTestSetup)4 ResultSet (java.sql.ResultSet)3