Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


    super(name);
  }

  public static Test suite() throws SQLException {

        BaseTestSuite suite = new BaseTestSuite("jdbc4");

        // These really need to run standalone.
    //suite.addTestSuite(AutoloadBooting.class);

    suite.addTest(BlobTest.suite());
    suite.addTest(CallableStatementTest.suite());
    suite.addTest(ClobTest.suite());
    suite.addTest(ConnectionTest.suite());
    suite.addTest(DataSourceTest.suite());
    suite.addTest(ParameterMetaDataWrapperTest.suite());
    suite.addTest(PreparedStatementTest.suite());
    suite.addTest(ResultSetMetaDataTest.suite());
    suite.addTest(ResultSetTest.suite());
    suite.addTest(RowIdNotImplementedTest.suite());
    suite.addTest(SetObjectUnsupportedTest.suite());
    suite.addTest(StatementEventsTest.suite());
    suite.addTest(StatementTest.suite());
    suite.addTest(TestDbMetaData.suite());
    suite.addTest(TestJDBC40Exception.suite());
    suite.addTest(UnsupportedVetter.suite());
    suite.addTest(XA40Test.suite());
    suite.addTest(ConnectionMethodsTest.suite());
        suite.addTest(VerifySignatures.suite());
        suite.addTest (LobStreamTest.suite());
        suite.addTest(LobSortTest.suite());
        suite.addTest (BlobSetMethodsTest.suite());
        suite.addTest (JDBC4FromJDBC3DataSourceTest.suite());
        suite.addTest(Derby3650Test.suite());
        suite.addTest(Derby2017LayerBTest.suite());
        suite.addTest(AbortTest.suite());
        suite.addTest(Driver40Test.suite());
        suite.addTest(Driver40UnbootedTest.suite());
        suite.addTest(LoginTimeoutTest.suite());

        if (JDBC.vmSupportsJDBC42())
        {
            suite.addTest( getSuite( "org.apache.derbyTesting.functionTests.tests.jdbc4.PreparedStatementTest42" ) );
        }
   
    return suite;
  }
View Full Code Here


     * Dummy method for testDerby4310* fixtures
     */
    public static void zeroArg() {  }

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

        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the table used in the test cases.
             *
 
View Full Code Here

     * Runs the test fixtures in embedded and client.
     *
     * @return test suite
     */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("XATest");
        // no XA for JSR169
        if (JDBC.vmSupportsJSR169())
            return suite;

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

        suite.addTest(TestConfiguration
                .clientServerDecorator(baseSuite("XATest:client")));
       
        return DatabasePropertyTestSetup.setLockTimeouts(suite, 3, 5);
    }
View Full Code Here

     * Returns an appropariate suite of tests to run.
     *
     * @return A test suite.
     */
    public static Test suite() {
        BaseTestSuite suite =
            new BaseTestSuite("DataSourceSerializationTest");

        String filePrefix = "functionTests/testData/serializedDataSources/";
        // De-serialize embedded data sources only if we have the engine code.
        if (Derby.hasEmbedded()) {
            suite.addTest(new DataSourceSerializationTest(
                    "serTestEmbeddedDataSource"));
            suite.addTest(new DataSourceSerializationTest(
                    "serTestEmbeddedConnectionPoolDataSource"));
            suite.addTest(new DataSourceSerializationTest(
                    "serTestEmbeddedXADataSource"));
        }

        // De-serialize client data sources only if we have the client code.
        if (Derby.hasClient()) {
            suite.addTest(new DataSourceSerializationTest(
                    "serTestClientDataSource"));
            suite.addTest(new DataSourceSerializationTest(
                    "serTestClientConnectionPoolDataSource"));
            suite.addTest(new DataSourceSerializationTest(
                    "serTestClientXADataSource"));
        }

        return new SupportFilesSetup(suite, new String[] {
                // 10.0 resources
View Full Code Here

    /**
     * Create a suite with all tests.
     */
    public static Test suite() {
        BaseTestSuite suite =
            new BaseTestSuite("SetObjectUnsupportedTest suite");

        suite.addTest(baseSuite(false, "SetObjectUnsupportedTest:prepared"));
        suite.addTest(baseSuite(true, "SetObjectUnsupportedTest:callable"));

        BaseTestSuite client =
            new BaseTestSuite("SetObjectUnsupportedTest:client");

        client.addTest(baseSuite(false, "SetObjectUnsupportedTest:prepared"));
        client.addTest(baseSuite(true, "SetObjectUnsupportedTest:callable"));

        suite.addTest(TestConfiguration.clientServerDecorator(client));
        return suite;
    }
View Full Code Here

        super(script, true);
    }
   
    private static Test getSuite(String[] list)
    {
        BaseTestSuite suite = new BaseTestSuite("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

                getSuite(EMBEDDED_TESTS), props);

        // Lock timeout settings that were set for the old harness store tests
        test = DatabasePropertyTestSetup.setLockTimeouts(test, 1, 4);
       
        BaseTestSuite suite = new BaseTestSuite("StoreScripts");
        suite.addTest(test);

        return getIJConfig(suite);
    }  
View Full Code Here

    /**
     * Return the suite that runs the Localized script.
     */
    public static Test suite() {

        BaseTestSuite suite = new BaseTestSuite("LocalizedScripts");

        // Note that it doesn't really make sense to run with network
        // server/client, as LocalizedConnectionAttributes.sql has a hardcoded
        // connect with protocol, so we can test connect 'as' with a us-ascii
        // character. So only run with embedded.
        // Similarly, the script cannot run with JSR169, because the connect
        // statement automatically invokes DriverManager.
        if (JDBC.vmSupportsJSR169())
            return suite;
        BaseTestSuite localizedTests =
            new BaseTestSuite("LocalizedScripts:embedded");
        localizedTests.addTest(getSuite());
        Test local = TestConfiguration.singleUseDatabaseDecoratorNoShutdown(
            localizedTests);

        // add those client tests into the top-level suite.
        suite.addTest(local);
View Full Code Here

*/
public class Changes10_1 extends UpgradeChange {
   
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("Upgrade changes for 10.1");
       
        suite.addTestSuite(Changes10_1.class);
       
        return suite;
    }
View Full Code Here

     * script name. The test is surrounded in a decorator
     * that sets localization properties wrapped in a decorator
     * that cleans the database.
     */
    private static Test getSuite() {
        BaseTestSuite suite = new BaseTestSuite("localized scripts");
        Properties uiProps = new Properties();

        uiProps.put("derby.ui.locale","de_DE");
        uiProps.put("derby.ui.codeset","ISO-8859-1");
        suite.addTest(new SystemPropertyTestSetup(
                new LocalizedAttributeScriptTest("LocalizedConnectionAttribute"), uiProps));
       
        return getIJConfig(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.