use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.
the class ReplicationRun_Local_3_p3 method suite.
public static Test suite() {
BaseTestSuite suite = new BaseTestSuite("ReplicationRun_Local_3_p3 Suite");
suite.addTestSuite(ReplicationRun_Local_3_p3.class);
return SecurityManagerSetup.noSecurityManager(suite);
}
use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.
the class DestroySlaveDB method suite.
public static Test suite() throws Exception {
System.out.println("**** DestroySlaveDB.suite()");
System.out.println("'DestroySlaveDB' can not be run outside the 'ReplicationRun' framework.");
BaseTestSuite suite = new BaseTestSuite("DestroySlaveDB");
String masterHostName = System.getProperty("test.serverHost", "localhost");
int masterPortNo = Integer.parseInt(System.getProperty("test.serverPort", "1527"));
repRun.initEnvironment();
slaveServerHost = ReplicationRun.slaveServerHost;
suite.addTest(DestroySlaveDB.suite(masterHostName, masterPortNo));
return (Test) suite;
}
use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.
the class ReplicationRun_CleanUp method suite.
public static Test suite() {
BaseTestSuite suite = new BaseTestSuite("ReplicationRun_CleanUp");
suite.addTestSuite(ReplicationRun_CleanUp.class);
return SecurityManagerSetup.noSecurityManager(suite);
}
use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.
the class _Suite method suite.
public static Test suite() {
BaseTestSuite suite = new BaseTestSuite("In-memory db test suite");
// Tests are not yet compatible with JSR169 / JavaME
if (!JDBC.vmSupportsJSR169()) {
suite.addTest(BasicInMemoryDbTest.suite());
suite.addTest(Derby6662Test.suite());
suite.addTest(MogTest.suite());
}
return suite;
}
use of org.apache.derbyTesting.junit.BaseTestSuite in project derby by apache.
the class StressMultiTest method suite.
/**
* Set up the testsuite to run in embedded, client and encryption mode.
* Default run is 10 threads for 10 minutes in each mode
*/
public static Test suite() {
Properties dbprops = new Properties();
dbprops.put("derby.locks.deadlockTimeout", "2");
dbprops.put("derby.locks.waitTimeout", "3");
Properties sysprops = new Properties();
sysprops.put("derby.storage.keepTransactionLog", "true");
sysprops.put("derby.language.logStatementText", "true");
sysprops.put("derby.infolog.append", "true");
Test embedded = new BaseTestSuite(StressMultiTest.class);
embedded = new SystemPropertyTestSetup(embedded, sysprops, true);
embedded = new DatabasePropertyTestSetup(embedded, dbprops);
// make this a singleUseDatabase so the datbase and
// transaction log will be preserved.
embedded = TestConfiguration.singleUseDatabaseDecorator(newCleanDatabase(embedded));
// SystemPropertyTestSetup for static properties
// does not work for client because shutting down the
// engine causes protocol errors on the client. Run
// with -Dderby.storage.keepTransactionLog=true if
// you need to save the transaction log for client.
Test client = TestConfiguration.clientServerDecorator(new BaseTestSuite(StressMultiTest.class));
client = newCleanDatabase(new DatabasePropertyTestSetup(client, dbprops));
Test encrypted = new BaseTestSuite(StressMultiTest.class);
// SystemPropertyTestSetup for static properties
// does not work for encrypted databases because the
// database has to be rebooted and we don't have access
// to the boot password (local to Decorator.encryptedDatabase()
// Run with -Dderby.storage.keepTransactionLog=true if you
// need to save the transaction log for encrypted.
BaseTestSuite unencrypted = new BaseTestSuite("StressMultiTest:unencrypted");
unencrypted.addTest((embedded));
unencrypted.addTest((client));
BaseTestSuite suite = new BaseTestSuite("StressMultiTest, " + THREADS + " Threads " + MINUTES + " Minutes");
suite.addTest(newCleanDatabase(unencrypted));
// Encrypted uses a different database so it needs its own newCleanDatabase
suite.addTest(Decorator.encryptedDatabase(new DatabasePropertyTestSetup(newCleanDatabase(encrypted), dbprops)));
return suite;
}
Aggregations