Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


    /**
     * Runs the test fixtures in embedded and client.
     * @return test suite
     */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("ProcedureTest");

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

        suite.addTest(
                TestConfiguration.clientServerDecorator(
                        baseSuite("ProcedureTest:client")));   
        return suite;
    }
View Full Code Here


     * instance which sets up and tears down the test environment.
     * @return test suite
     */
    private static Test baseSuite(String name)
    {
        BaseTestSuite suite = new BaseTestSuite(name);
       
        // Need JDBC DriverManager to run these tests
        if (!JDBC.vmSupportsJDBC3())
            return suite;
       
        suite.addTestSuite(ProcedureTest.class);
       
        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the tables and the stored procedures used in the test
             * cases.
 
View Full Code Here

    }

    protected static Test baseSuite(String name)
    {
        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(Derby5624Test.class);
        return new CleanDatabaseTestSetup(suite)
        {
            /**
             * Creates the tables used in the test cases.
             * @exception SQLException if a database error occurs
View Full Code Here

        };
    }

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

  /**
         * Create a suite of tests.
         **/
        public static Test suite() {
            BaseTestSuite suite = new BaseTestSuite("ForUpdateTest");
          suite.addTest(baseSuite("ForUpdateTest:embedded"));
          suite.addTest(TestConfiguration.clientServerDecorator(baseSuite("ForUpdateTest:client")));
          return suite;
      }
View Full Code Here

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

  protected static Test baseSuite(String name) {
            BaseTestSuite suite = new BaseTestSuite(name);
          suite.addTestSuite(ForUpdateTest.class)
    return new CleanDatabaseTestSetup(suite)
          {
                protected void decorateSQL(Statement s) throws SQLException
                {
                    s.execute("create table t1 ( i int, v varchar(10), d double precision, t time )");
View Full Code Here

        super(name);
    }

    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("OCRecoveryTest");
        //DERBY-4647 exec does not work on weme
        if (BaseTestCase.isJ9Platform())
            return suite;
        suite.addTest(decorateTest());
        return suite;
    }
View Full Code Here

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

        suite.addTest( decorateTest() );
       
        return suite;
    }
View Full Code Here

        return suite;
    }
   
    private static Test decorateTest()
    {
        Test test = new BaseTestSuite( HalfCreatedDatabaseTest.class );

        test = TestConfiguration.singleUseDatabaseDecorator( test, DB_NAME );

        test = SecurityManagerSetup.noSecurityManager( test );
View Full Code Here

     *
     * @return An instance of <code>Test</code> with the implemented tests to
     *         run.
     */
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("Bug5054Test");
        Test test = new CleanDatabaseTestSetup(TestConfiguration
                .embeddedSuite(Bug5054Test.class)) {
            protected void decorateSQL(Statement stmt) throws SQLException {
                stmt.executeUpdate("CREATE TABLE T1 (a integer, b integer)");
                stmt.executeUpdate("INSERT INTO T1 VALUES(1, 1)");
                stmt.executeUpdate("INSERT INTO T1 VALUES(2, 2)");
            }
        };
        suite.addTest(test);
        suite.addTest(TestConfiguration.clientServerDecorator(test));
        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.