Search in sources :

Example 56 with SupportFilesSetup

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

the class Changes10_4 method suite.

/**
 * Return the suite of tests to test the changes made in 10.4.
 * @param phase an integer that indicates the current phase in
 *              the upgrade test.
 * @return the test suite created.
 */
public static Test suite(int phase) {
    BaseTestSuite suite = new BaseTestSuite("Upgrade test for 10.4");
    suite.addTestSuite(Changes10_4.class);
    return new SupportFilesSetup((Test) suite);
}
Also used : BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite) SupportFilesSetup(org.apache.derbyTesting.junit.SupportFilesSetup)

Example 57 with SupportFilesSetup

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

the class Changes10_6 method suite.

/**
 * Return the suite of tests to test the changes made in 10.6.
 * @param phase an integer that indicates the current phase in
 *              the upgrade test.
 * @return the test suite created.
 */
public static Test suite(int phase) {
    BaseTestSuite suite = new BaseTestSuite("Upgrade test for 10.6");
    suite.addTestSuite(Changes10_6.class);
    return new SupportFilesSetup((Test) suite);
}
Also used : BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite) SupportFilesSetup(org.apache.derbyTesting.junit.SupportFilesSetup)

Example 58 with SupportFilesSetup

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

the class UpgradeTrajectoryTest method suite.

// /////////////////////////////////////////////////////////////////////////////////
// 
// JUnit BEHAVIOR
// 
// /////////////////////////////////////////////////////////////////////////////////
/**
 * Return the suite of tests.
 */
public static Test suite() {
    BaseTestSuite suite = new BaseTestSuite("Upgrade trajectory test");
    addTrajectories(suite);
    Test sfs = new SupportFilesSetup((Test) suite);
    return SecurityManagerSetup.noSecurityManager(sfs);
}
Also used : Test(junit.framework.Test) BaseTestSuite(org.apache.derbyTesting.junit.BaseTestSuite) SupportFilesSetup(org.apache.derbyTesting.junit.SupportFilesSetup)

Aggregations

SupportFilesSetup (org.apache.derbyTesting.junit.SupportFilesSetup)58 BaseTestSuite (org.apache.derbyTesting.junit.BaseTestSuite)49 Test (junit.framework.Test)34 CleanDatabaseTestSetup (org.apache.derbyTesting.junit.CleanDatabaseTestSetup)19 Statement (java.sql.Statement)13 PreparedStatement (java.sql.PreparedStatement)11 Properties (java.util.Properties)9 SystemPropertyTestSetup (org.apache.derbyTesting.junit.SystemPropertyTestSetup)8 SecurityManagerSetup (org.apache.derbyTesting.junit.SecurityManagerSetup)4 CallableStatement (java.sql.CallableStatement)3 LocaleTestSetup (org.apache.derbyTesting.junit.LocaleTestSetup)3 NetworkServerTestSetup (org.apache.derbyTesting.junit.NetworkServerTestSetup)3 URL (java.net.URL)2 Locale (java.util.Locale)2 ClasspathSetup (org.apache.derbyTesting.junit.ClasspathSetup)2 BufferedReader (java.io.BufferedReader)1 File (java.io.File)1 InputStreamReader (java.io.InputStreamReader)1 Connection (java.sql.Connection)1 SQLException (java.sql.SQLException)1