Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite.addTestSuite()


    private static Test baseSuite(String name) {

        BaseTestSuite suite = new BaseTestSuite(name);

        // Add tests that every JVM should be able to run.
        suite.addTestSuite(CallableTest.class);

        // Add tests that require JDBC 3
        if (JDBC.vmSupportsJDBC3()) {

            // Tests that require DriverManager.
View Full Code Here


    }

    private static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);

        suite.addTestSuite(StatementJdbc30Test.class);

        if  (name.equals(CLIENT_SUITE_NAME)) {
            // These test CAN be run in embedded mode as well, but
            // they're only meaningful in c/s mode and also take quite
            // a bit of time to run.
View Full Code Here

    }

    public static Test baseSuite(String name) {

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

        return new CleanDatabaseTestSetup(suite) {

            /**
             * Create and populate table
View Full Code Here

  private static Test baseSuite(String name)
      {
            BaseTestSuite suite = new BaseTestSuite(name);

          suite.addTestSuite(ParameterMetaDataJdbc30Test.class);

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

          return suite;
      }

  protected static Test baseSuite(String name) {
            BaseTestSuite suite = new BaseTestSuite(name);
          suite.addTestSuite(ReleaseCompileLocksTest.class);
         
    return new CleanDatabaseTestSetup(suite)
          {
                protected void decorateSQL(Statement s) throws SQLException
                {
View Full Code Here

        return suite;
    }

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

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

            new BaseTestSuite("SavepointJdbc30_JSR169Test suite");

        // Get the tests for embedded
        BaseTestSuite embedded = new BaseTestSuite(
                "SavepointJdbc30_JSR169Test:embedded");
        embedded.addTestSuite(SavepointJdbc30Test.class);
        embedded.addTest(getEmbeddedSuite("SavepointJdbc30_JSR169Test:"
                + "embedded only"));
        suite.addTest(embedded);

        // Get the tests for client.
View Full Code Here

        // Get the tests for client.
        BaseTestSuite client =
            new BaseTestSuite("SavepointJdbc30_JSR169Test:client");

        client.addTestSuite(SavepointJdbc30Test.class);
        suite.addTest(TestConfiguration.clientServerDecorator(client));

        // Repeat the embedded tests obtaining a connection from
        // an XA data source if it is supported. This is not supported
        // under JSR169.
View Full Code Here

            // an XA data source if it is supported. This is not supported
            // under JSR169.
            client = new BaseTestSuite(
                "SavepointJdbc30_JSR169Test:client XADatasource");

            client.addTestSuite(SavepointJdbc30Test.class);
            suite.addTest(TestConfiguration.clientServerDecorator(TestConfiguration.connectionXADecorator(client)));         
       

        return new CleanDatabaseTestSetup(
                DatabasePropertyTestSetup.setLockTimeouts(suite, 1, 2)) {
View Full Code Here

        BaseTestSuite ts = new BaseTestSuite("ClobUpdatableReaderTest");
        ts.addTest(TestConfiguration.defaultSuite(
                    ClobUpdatableReaderTest.class));
        BaseTestSuite encSuite =
            new BaseTestSuite("ClobUpdatableReaderTest:encrypted");
        encSuite.addTestSuite (ClobUpdatableReaderTest.class);
        ts.addTest(Decorator.encryptedDatabase (encSuite));
        return ts;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.