Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


     * Return a suite of tests that are run with client only
     *
     * @return A suite of tests being run with client only
     */
    private static Test getClientSuite() {
        BaseTestSuite suite = new BaseTestSuite("Client/Server");
        suite.addTest(new DataSourceTest("testClientDSConnectionAttributes"));
        suite.addTest(new DataSourceTest(
                "testClientTraceFileDSConnectionAttribute"));
        suite.addTest(new DataSourceTest(
                "testClientMessageTextConnectionAttribute"));
        return suite;
    }
View Full Code Here


    }

   
    protected static Test baseSuite(String name)
    {
        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(Derby4923Test.class);
        return new CleanDatabaseTestSetup(
                DatabasePropertyTestSetup.setLockTimeouts(suite, 2, 4))
        {
            /**
             * Creates the tables used in the test cases.
View Full Code Here

     *
     * @param postfix suite name postfix
     * @return A suite of tests being run with embedded only
     */
    private static Test getEmbeddedSuite(String postfix) {
        BaseTestSuite suite = new BaseTestSuite("Embedded" + postfix);
        suite.addTest(new DataSourceTest("testDSRequestAuthentication"));
        return suite;
    }
View Full Code Here

        };
    }

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

        suite.addTest(new DataSourceTest("testDSRequestAuthentication"));
        return suite;
    }
   
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("DataSourceTest suite");
        // Add the tests that only run with embedded
        suite.addTest(getEmbeddedSuite("embedded"));
        // Add tests that will run with embedded
        suite.addTest(baseSuite(":embedded"));
        if (!JDBC.vmSupportsJSR169()) {
            //  and network server/client
            suite.addTest(TestConfiguration.clientServerDecorator(
                    baseSuite(":client")));
            // Add the tests that only run with client
            suite.addTest(TestConfiguration.clientServerDecorator(
                    getClientSuite()));
        }
        // wrap all in CleanDatabaseTestSetup that creates all database
        // objects any fixture might need.
        // Note that not all fixtures need (all of) these.
View Full Code Here

        }
        setAutoCommit(true);
    }

    public static Test suite() {
        return new BaseTestSuite(AutomaticIndexStatisticsMultiTest.class);
    }
View Full Code Here

        super(name);
    }

    protected static Test makeSuite(String name)
    {
        BaseTestSuite suite = new BaseTestSuite(name);

        Test cst = TestConfiguration.defaultSuite(Derby5158Test.class);

        suite.addTest(cst);

        return suite;
    }
View Full Code Here

    /**
     * Return suite with all tests of the class.
     */
    public static Test suite() {
        // Use explicit ordering of fixtures until fix of DERBY-5988
        BaseTestSuite s = new BaseTestSuite("datasourcetestsuite-embedded");
        s.addTest(new DataSourceTest("testIsNotWrapperForPoolDataSource"));
        s.addTest(new DataSourceTest("testIsNotWrapperForXADataSource"));
        s.addTest(new DataSourceTest("testUnwrapConnectionPoolDataSource"));
        s.addTest(new DataSourceTest("testIsWrapperForDataSource"));
        s.addTest(new DataSourceTest("testIsNotWrapperForResultSet"));
        s.addTest(new DataSourceTest("testUnwrapXADataSource"));
        s.addTest(new DataSourceTest("testConnectionErrorEvent"));
        s.addTest(new DataSourceTest("testUnwrapResultSet"));
        s.addTest(new DataSourceTest("testUnwrapDataSource"));
        s.addTest(new DataSourceTest("test_jdbc4_1"));
        BaseTestSuite ns = new BaseTestSuite("datasourcetestsuite-net");
        ns.addTest(new DataSourceTest("testIsNotWrapperForPoolDataSource"));
        ns.addTest(new DataSourceTest("testIsNotWrapperForXADataSource"));
        ns.addTest(new DataSourceTest("testUnwrapConnectionPoolDataSource"));
        ns.addTest(new DataSourceTest("testIsWrapperForDataSource"));
        ns.addTest(new DataSourceTest("testIsNotWrapperForResultSet"));
        ns.addTest(new DataSourceTest("testUnwrapXADataSource"));
        ns.addTest(new DataSourceTest("testConnectionErrorEvent"));
        ns.addTest(new DataSourceTest("testUnwrapResultSet"));
        ns.addTest(new DataSourceTest("testUnwrapDataSource"));
        ns.addTest(new DataSourceTest("test_jdbc4_1"));

        BaseTestSuite totalsuite = new BaseTestSuite("datasourcetest");
        totalsuite.addTest(new CleanDatabaseTestSetup(s));
        totalsuite.addTest(TestConfiguration.clientServerDecorator(
                               new CleanDatabaseTestSetup(ns)));
        return totalsuite;
    }
View Full Code Here

        Test suite;
        if (SanityManager.DEBUG) {
            suite = TestConfiguration.embeddedSuite(
                    CryptoCrashRecoveryTest.class);
        } else {
            suite = new BaseTestSuite(
                    "CryptoCrashRecovery disabled due to non-debug build");
            println("CryptoCrashRecoveryTest disabled due to non-debug build");
        }
        return suite;
    }
View Full Code Here

     * Then runs the full embeddded suite with LobLimitsTest
     * Then runs the full client suite with LobLimitsClientTest.
     * The full suite may take a very long time.
     */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("largedata suite");

        suite.addTest(Derby6317Test.suite());
        // DERBY-5624, currently this runs out of file descriptors on unix
        // systems with 1024 limit per user.  Setting to run only on windows
        // until solution for unix is found.
        if (isWindowsPlatform())
            suite.addTest(Derby5624Test.suite());

        suite.addTest(LobLimitsLiteTest.suite());
        suite.addTest(LobLimitsTest.suite());
        suite.addTest(LobLimitsClientTest.suite());
        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.