Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


     * driver only.
     *
     * @return A test suite.
     */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite(BackupRestoreTest.class);
        return new SupportFilesSetup(
                TestConfiguration.singleUseDatabaseDecorator(suite));
    }
View Full Code Here


    /**
     * Return suite with all tests of the class.
     */
    public static Test suite() {
        BaseTestSuite suite =
            new BaseTestSuite("CallableStatementTest suite");

        suite.addTest(baseSuite("CallableStatementTest:embedded"));
        suite.addTest(TestConfiguration.clientServerDecorator(
            baseSuite("CallableStatementTest:client")));
        suite.addTest(TestConfiguration.clientServerDecorator(
                                TestConfiguration.connectionCPDecorator( baseSuite
                                        ("CallableStatementTest:logical"))));
        return suite;
    }
View Full Code Here

                                        ("CallableStatementTest:logical"))));
        return suite;
    }

    private static Test baseSuite(String name) {
        BaseTestSuite suite =
            new BaseTestSuite(CallableStatementTest.class, name);

        return new CallableStatementTestSetup(suite);
    }
View Full Code Here

        sysprops.setProperty("derby.locks.monitor", "true");
        // Some of the test cases depend on certain other test cases to run
        // first, so force the test cases to run in lexicographical order.
        Test suite =
                new CleanDatabaseTestSetup(
                        new BaseTestSuite(LobLimitsTest.class)) {
            @Override
            protected void decorateSQL(Statement s)
                           throws SQLException {
                setupTables(s, biggestSize, bigSize);
            }
View Full Code Here

     *
     * @param name name of the test suite
     * @return a test suite
     */
    private static Test baseSuite(String name) {
        BaseTestSuite suites = new BaseTestSuite(name);
        boolean[] truefalse = new boolean[] { true, false };
        for (boolean xa : truefalse) {
            for (boolean callable : truefalse) {
                suites.addTest(new Suite(xa, callable));
            }
        }
        return suites;
    }
View Full Code Here

        return suites;
    }

    /** Create a test suite with all tests in the class. */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("StatementEventsTest suite");
        suite.addTest(baseSuite("StatementEventsTest:embedded"));
        suite.addTest(TestConfiguration.clientServerDecorator(
              baseSuite("StatementEventsTest:client")));
        return suite;
    }
View Full Code Here

    static final int _1MB = 1024*1024;
    static final int _100K = 1024 *100;
   
    public static Test suite() {
        Test test = LobLimitsTest.baseSuite(_1MB, _100K);
        BaseTestSuite suite = new BaseTestSuite("LobLimitsLiteTest");
        suite.addTest(test);
        suite.addTest(TestConfiguration.clientServerDecorator(test));
        return suite;
       
    }
View Full Code Here

        fail("FAIL: setTransactionIsolation() did not throw exception with open hold cursor");
    }

    public static Test baseSuite(String name) {

        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(SetTransactionIsolationTest.class);

        // Some test cases expect lock timeouts, so reduce the timeout to
        // make the test go faster.
        Test test = DatabasePropertyTestSetup.setLockTimeouts(suite, 1, 3);
View Full Code Here

        };

    }

    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("SetTransactionIsolation");

        suite.addTest(baseSuite("SetTransactionIsolation:embedded"));

        suite
                .addTest(TestConfiguration
                        .clientServerDecorator(baseSuite("SetTransactionIsolation:client")));
        return suite;

    }
View Full Code Here

        super(name);
    }

    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("Derby6317Test");
        suite.addTest(baseSuite("Derby6317Test:embedded"));
        return suite;
    }
View Full Code Here

TOP

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

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.