Search in sources :

Example 1 with CreateTableFromQueryTest

use of org.apache.derbyTesting.functionTests.tests.lang.CreateTableFromQueryTest in project derby by apache.

the class StandardTests method createTableFromQueryTest.

public static Test createTableFromQueryTest(String serverHost, int serverPort) {
    Test t = // false: because adds clean/decorate below
    TestConfiguration.existingServerSuite(// false: because adds clean/decorate below
    CreateTableFromQueryTest.class, // false: because adds clean/decorate below
    false, serverHost, serverPort);
    CleanDatabaseTestSetup cdts = new CleanDatabaseTestSetup(t, // Use networkclient when running setUp/decorateSQL
    true, serverHost, serverPort) {

        protected void decorateSQL(Statement stmt) throws SQLException {
            CreateTableFromQueryTest.decorate(stmt);
        }
    };
    return cdts;
}
Also used : PrepareStatementTest(org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest) Test(junit.framework.Test) SimpleTest(org.apache.derbyTesting.functionTests.tests.lang.SimpleTest) DatabaseClassLoadingTest(org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest) CreateTableFromQueryTest(org.apache.derbyTesting.functionTests.tests.lang.CreateTableFromQueryTest) AnsiTrimTest(org.apache.derbyTesting.functionTests.tests.lang.AnsiTrimTest) CleanDatabaseTestSetup(org.apache.derbyTesting.junit.CleanDatabaseTestSetup) Statement(java.sql.Statement)

Aggregations

Statement (java.sql.Statement)1 Test (junit.framework.Test)1 PrepareStatementTest (org.apache.derbyTesting.functionTests.tests.derbynet.PrepareStatementTest)1 AnsiTrimTest (org.apache.derbyTesting.functionTests.tests.lang.AnsiTrimTest)1 CreateTableFromQueryTest (org.apache.derbyTesting.functionTests.tests.lang.CreateTableFromQueryTest)1 DatabaseClassLoadingTest (org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest)1 SimpleTest (org.apache.derbyTesting.functionTests.tests.lang.SimpleTest)1 CleanDatabaseTestSetup (org.apache.derbyTesting.junit.CleanDatabaseTestSetup)1