Package org.apache.derbyTesting.junit

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


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


    }
   
    private static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);
       
        suite.addTestSuite(StatementJdbc20Test.class);
       
        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the tables used in the test
             * cases.
 
View Full Code Here

    }
   
    private static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);
       
        suite.addTestSuite(NullSQLTextTest.class);
       
        return new CleanDatabaseTestSetup(suite) {
            /**
             * Creates the tables and the stored procedures used in the test
             * cases.
 
View Full Code Here

            new File(System.getProperty("derby.system.home") + "/d2354db"));
    }
   
    protected static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(DBInJarTest.class);
        // Don't run with security manager, we need access to user.dir to archive
        // the database.
        return new CleanDatabaseTestSetup(SecurityManagerSetup.noSecurityManager(suite))
        {
            /**
 
View Full Code Here

    private static Test baseSuite(boolean embeddedMode) {
        String name = "HoldCursorTest:" + (embeddedMode ? "embedded" : "client");
        BaseTestSuite suite = new BaseTestSuite(name);

        // Add tests that every JVM jdk1.4 or above should be able to run.
        suite.addTestSuite(HoldCursorTest.class);

        if (!JDBC.vmSupportsJSR169()) {
             suite.addTest (new HoldCursorTest("StatementsInProcedureTest"));
        }
View Full Code Here

        BaseTestSuite suite = new BaseTestSuite();
       
        // Code generation test, just invoke on embedded
        // as the main function is to test the byte code compiler.
        if (usingEmbedded()) {
            suite.addTestSuite(largeCodeGen.class);
            return new CleanDatabaseTestSetup(suite);
        }
        return suite;
    }
      
View Full Code Here

    }
   
    private static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(
            "StatementPlanCacheTest:derby.language.statementCacheSize=" + name);
        suite.addTestSuite(StatementPlanCacheTest.class);
        return suite;
    }
   
    /**
     * Prepare the statement that sees if a statement given its
View Full Code Here

        s.executeUpdate("create table nt (v varchar(2))");
        s.executeUpdate("insert into nt values (null)");
    }
   public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("AnsiTrimTest");
        suite.addTestSuite(AnsiTrimTest.class);
        return new CleanDatabaseTestSetup(suite) {
            public void decorateSQL(Statement s)
                    throws SQLException {
                decorate(s);
            }
View Full Code Here

        return suite;
    }
   
    private static BaseTestSuite baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(UpdatableResultSetTest.class);
        return suite;
    }
   
    protected void setUp() throws SQLException {
        getConnection().setAutoCommit(false);
View Full Code Here

  /**
     * Create a suite of tests.
     */
  public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("CurrentOfTest");
    suite.addTestSuite(CurrentOfTest.class);
    //To run the test in both embedded and client/server mode
    //commenting it for the time being sicne the test fails in the client/server mode
    //return   TestConfiguration.defaultSuite(CurrentOfTest.class);
    return suite;
  }
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.