Package org.apache.derbyTesting.junit

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


    }
   
    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("GROUP BY expression tests");
        suite.addTestSuite(GroupByExpressionTest.class);
       
        TestSetup wrapper = new CleanDatabaseTestSetup(suite) {
          protected void decorateSQL(Statement s) throws SQLException
            {
                for (int i = 0; i < TABLES.length; i++) {
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

       
        // 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

          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

    }

    public static Test baseSuite(String name) {

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

        // Some test cases expect lock timeouts, so reduce the timeout to
        // make the test go faster.
        Test test = DatabasePropertyTestSetup.setLockTimeouts(suite, 1, 3);
View Full Code Here

    }

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

        return new SystemPropertyTestSetup(suite, strColProperties);
    }

    protected static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(name);
        suite.addTestSuite(StreamingColumnTest.class);
        Test test = new SupportFilesSetup(suite, new String[] {
                "functionTests/tests/store/short.data",
                "functionTests/tests/store/shortbanner",
                "functionTests/tests/store/derby.banner",
                "functionTests/tests/store/empty.data",
View Full Code Here

        ts.addTest(TestConfiguration.defaultSuite (LobStreamsTest.class));
        // JSR169 does not have support for encryption
        if (JDBC.vmSupportsJDBC3()) {
            BaseTestSuite encSuite =
                new BaseTestSuite ("LobStreamsTest:encrypted");
            encSuite.addTestSuite (LobStreamsTest.class);
            ts.addTest(Decorator.encryptedDatabase (encSuite));
        }
        return ts;
    }
    //method to ensure that buffer is filled if there is any data in stream
View Full Code Here

   
    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("ReplicationRun_Local Suite");
       
        suite.addTestSuite( ReplicationRun_Local.class );
       
        return SecurityManagerSetup.noSecurityManager(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.