Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.CleanDatabaseTestSetup


    public static Test baseSuite(String name) {
        TestSuite suite = new TestSuite(name);
        suite.addTestSuite(XATest.class);

        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the table used in the test cases.
             *
             */
            protected void decorateSQL(Statement s) throws SQLException {
View Full Code Here


    }

    private static Test baseSuite(String name) {
        TestSuite testSuite = new TestSuite(name);
        testSuite.addTestSuite(TestDbMetaData.class);
        return new CleanDatabaseTestSetup(testSuite) {
                protected void decorateSQL(Statement s) throws SQLException {
                    createFunctions(s);
                }
            };
    }
View Full Code Here

  private static Test getSuite(String[] list)
  {
        TestSuite suite = new TestSuite("SQL scripts");
        for (int i = 0; i < list.length; i++)
            suite.addTest(
                new CleanDatabaseTestSetup(
                new LangScripts(list[i])));

        return getIJConfig(suite);
    }
View Full Code Here

     * Run only in embedded as TRIGGERs are server side logic.
     * Also the use of a ThreadLocal to check state requires
     * embedded.
     */
    public static Test suite() {
        return new CleanDatabaseTestSetup(
                TestConfiguration.embeddedSuite(TriggerTest.class));
       
    }
View Full Code Here

        Test suite = TestConfiguration.embeddedSuite(UpdateLocksTest.class);

        Properties p = new Properties();
        p.put("derby.storage.pageSize", "4096");

        return new CleanDatabaseTestSetup(
            new SystemPropertyTestSetup(suite, p, false)) {

            /**
             * Creates the views and procedures used by the test cases.
             */
 
View Full Code Here

        // DERBY-4273: Include the lock table in the error message to help
        // debugging in case of lock timeouts.
        test = DatabasePropertyTestSetup.singleProperty(
                test, "derby.locks.deadlockTrace", "true");

        test = new CleanDatabaseTestSetup(test);
        return test;
    }
View Full Code Here

    private static Test getSuite(String[] list)
    {
        TestSuite suite = new TestSuite("SQL scripts");
        for (int i = 0; i < list.length; i++)
            suite.addTest(
                    new CleanDatabaseTestSetup(
                    new StoreScriptsTest(list[i])));

        return getIJConfig(suite);
    }
View Full Code Here

            mainSuite.addTest(largeSuite);
        }
        if (!disableConcurrencyTest) {
            mainSuite.addTest(new ClobAccessTest("testConcurrency", 1, 1));
        }
        return new CleanDatabaseTestSetup(mainSuite) {
            protected void decorateSQL(Statement stmt)
                    throws SQLException {
                initializeClobData(stmt);
            }
        };
View Full Code Here

            suite.addTest
                (new CallableTest("xtestRegUserDefOutParameterError"));
        }


        return new CleanDatabaseTestSetup(suite)
        {
            /**
            * Creates the tables and the stored procedures used in the test
            * cases.
            * @throws SQLException
View Full Code Here

            client = new TestSuite("SavepointJdbc30_JSR169Test:client XADatasource");
            client.addTestSuite(SavepointJdbc30Test.class);
            suite.addTest(TestConfiguration.clientServerDecorator(TestConfiguration.connectionXADecorator(client)));         
       
        // return suite;
        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the database objects used in the test cases.
             *
             * @throws SQLException
             */
 
View Full Code Here

TOP

Related Classes of org.apache.derbyTesting.junit.CleanDatabaseTestSetup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.