Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup


        final BaseTestSuite suite = new BaseTestSuite(name);
        final Properties systemProperties = new Properties();
        systemProperties.setProperty("derby.language.logQueryPlan", "true");
        suite.addTest(new SupportFilesSetup(
                new SystemPropertyTestSetup(
                          new ConstraintCharacteristicsTest(
                              "testDerby6666"), systemProperties, true)));

        return suite;
    }
View Full Code Here


        final Properties systemProperties = new Properties();
        systemProperties.setProperty(
            "derby.locks.waitTimeout", Integer.toString(500));

        return new SupportFilesSetup(
                new SystemPropertyTestSetup(suite, systemProperties, true));
    }
View Full Code Here

        // turn on statement logging so there will be something in the error log
        // to run these vtis against
        Properties sysprops = new Properties();
        sysprops.put( "derby.language.logStatementText", "true" );
        Test    verboseTest = new SystemPropertyTestSetup ( defaultSetup, sysprops );

        suite.addTest( verboseTest );

         /* Some of the VTIs that are tested in this class require a derby.log
         * file.  We have a test log file stored in the tests/lang directory,
View Full Code Here

        sysprops.put("derby.user.system", "admin");
        sysprops.put("derby.user.mickey", "mouse");
        test = DatabasePropertyTestSetup.builtinAuthentication(test,
            USERS, PASSWORD_SUFFIX);
        test = new DatabasePropertyTestSetup (test, props, true);
        suite.addTest(new SystemPropertyTestSetup (test, sysprops));
    }
View Full Code Here

        // turn on log statement text for sequence of statements in derby.log. 
        if (verbose_debug)
        {
            Properties props = new Properties();
            props.setProperty("derby.language.logStatementText", "true");
            test = new SystemPropertyTestSetup(test, props);
        }

        return test;
    }
View Full Code Here

 
  public static Test suite() {
        Test s = new BaseTestSuite(DistinctTest.class);
    Properties p = new Properties();
    p.put("derby.optimizer.noTimeout", "true");
    Test t = new SystemPropertyTestSetup(s, p);
   
    return new CleanDatabaseTestSetup(t) {
      protected void decorateSQL(Statement s) throws SQLException {
        s.execute("create table t (i int, s smallint, r real, f float, d date, t time, ts timestamp, c char(10), v varchar(20))");
View Full Code Here

    public static Test suite() {
        Properties systemProperties = new Properties();
        systemProperties.setProperty("derby.optimizer.noTimeout","true");
        BaseTestSuite suite = new BaseTestSuite("predicatePushdown Test");
        suite.addTest(new SystemPropertyTestSetup(new CleanDatabaseTestSetup(TestConfiguration
                .embeddedSuite(PredicatePushdownTest.class)),systemProperties));
        return suite;
    }
View Full Code Here

        // turn on statement logging so there will be something in the error log
        // to run these vtis against
        Properties sysprops = new Properties();
        sysprops.put( "derby.language.logStatementText", "true" );
        Test    verboseTest = new SystemPropertyTestSetup ( defaultSetup, sysprops );

        suite.addTest( verboseTest );

         /* Some of the VTIs that are tested in this class require a derby.log
         * file.  We have a test log file stored in the tests/lang directory,
View Full Code Here

        Properties props = new Properties();

        props.setProperty("derby.language.statementCacheSize", "0");
        return new DatabasePropertyTestSetup(
            new SystemPropertyTestSetup(new CleanDatabaseTestSetup(
               new BaseTestSuite(SubqueryTest.class, "SubqueryTest")) {

                    /**
                     * @see org.apache.derbyTesting.junit.CleanDatabaseTestSetup#decorateSQL(java.sql.Statement)
                     */
 
View Full Code Here

       public static Test suite() {
        Test suite =  TestConfiguration.defaultSuite(BlobMemTest.class);
        Properties p = new Properties();
        // use small pageCacheSize so we don't run out of memory on the insert.
        p.setProperty("derby.storage.pageCacheSize", "100");
        return new SystemPropertyTestSetup(suite,p);
    }
View Full Code Here

TOP

Related Classes of org.apache.derbyTesting.junit.SystemPropertyTestSetup

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.