Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup


  public static Test suite() {
    Properties props = new Properties();

    props.setProperty("derby.language.maxMemoryPerTable", "1");
    return new DatabasePropertyTestSetup(
        new SystemPropertyTestSetup(new CleanDatabaseTestSetup(
        new TestSuite(UpdateCursorTest.class, "UpdateCursorTest")) {

      /**
       * @see org.apache.derbyTesting.junit.CleanDatabaseTestSetup#decorateSQL(java.sql.Statement)
       */
 
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);
        }

        // database to use for testing default collation.
        test = TestConfiguration.additionalDatabaseDecorator(
                    test, TEST_DATABASE[TEST_DEFAULT]);
View Full Code Here

       
        Properties preReleaseUpgrade = new Properties();
        preReleaseUpgrade.setProperty(
                "derby.database.allowPreReleaseUpgrade", "true");
       
        setup = new SystemPropertyTestSetup(setup, preReleaseUpgrade);
  
        return SecurityManagerSetup.noSecurityManager(setup);
    }
View Full Code Here

        //Create the traceDirectory required by the tests in this class
      Properties traceRelatedProperties = new Properties();
        traceRelatedProperties.setProperty("derby.client.traceLevel", "64");
        traceRelatedProperties.setProperty("derby.client.traceDirectory", "TraceDir");
        Test suite = TestConfiguration.clientServerSuite(ClientSideSystemPropertiesTest.class);
        return new SystemPropertyTestSetup(suite, traceRelatedProperties);
    }
View Full Code Here

        }
        // always set the encoding so that we can reliably read the output
        prop.setProperty("derby.ui.codeset", ENCODING);

        Test test = new SysinfoLocaleTest(loc, german);
        return new SystemPropertyTestSetup(test, prop);
    }
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

 
  public static Test suite() {
    Test s = new TestSuite(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");
        TestSuite suite = new TestSuite("predicatePushdown Test");
        suite.addTest(new SystemPropertyTestSetup(new CleanDatabaseTestSetup(TestConfiguration
                .embeddedSuite(PredicatePushdownTest.class)),systemProperties));
        return suite;
    }
View Full Code Here

    {
        TestSuite   suite = new TestSuite();

        Test    embedded = new TestSuite( LoginTimeoutTest.class, "embedded LoginTimeoutTest" );
        embedded = TestConfiguration.singleUseDatabaseDecorator( embedded );
        embedded = new SystemPropertyTestSetup( embedded, systemProperties() );
        suite.addTest( embedded );
       
        Test    clientServer = new TestSuite( LoginTimeoutTest.class, "client/server LoginTimeoutTest" );
        clientServer = TestConfiguration.singleUseDatabaseDecorator( clientServer );
        clientServer = new JDBCClientSetup( clientServer, JDBCClient.DERBYNETCLIENT );
View Full Code Here

    private static TestSuite decorateSystemPropertyTests(TestSuite suite) {
        Properties traceProps = new Properties();
        traceProps.put("derby.drda.traceDirectory","/");
        traceProps.put("derby.drda.traceAll","true");
        suite.addTest(new SystemPropertyTestSetup(TestConfiguration.clientServerDecorator(
                new NetworkServerControlApiTest("xtestTraceSystemPropertiesNoPermission")),
                    traceProps));
       
        Properties traceProps2 = new Properties();
       
        traceProps2.put("derby.drda.traceDirectory",getSystemProperty("derby.system.home") + "/trace");
        traceProps2.put("derby.drda.traceAll","true");
        suite.addTest(new SystemPropertyTestSetup(TestConfiguration.clientServerDecorator(
                new NetworkServerControlApiTest("xtestTraceSystemPropertiesHasPermission")),
                    traceProps2));
       
        return suite;
    }
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.