Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.DatabasePropertyTestSetup


        props.setProperty("derby.infolog.append", "true");
        props.setProperty("derby.debug.true", "AuthenticationTrace");
        // add some users. these should not be defined on the ldap server
        props.setProperty("derby.user.system", "manager");
        props.setProperty("derby.user.Jamie", "theHooligan");
        suite.addTest(new DatabasePropertyTestSetup (test, props, true));
    }
View Full Code Here


        Test        unsecureTest = SecurityManagerSetup.noSecurityManager( suite );
        Test        authenticatedTest = DatabasePropertyTestSetup.builtinAuthentication
            ( unsecureTest, LEGAL_USERS, "LuceneCoarsePermissions" );

        Test        coarseTest = new DatabasePropertyTestSetup( authenticatedTest, makeProperties() );
        Test        singleUseTest = TestConfiguration.singleUseDatabaseDecorator( coarseTest );

        return singleUseTest;
    }
View Full Code Here

        Properties props = new Properties();
        props.setProperty("derby.locks.waitTimeout", "90");
        props.setProperty("derby.language.stalePlanCheckInterval", "5");
        suite.addTest(
            TestConfiguration.singleUseDatabaseDecorator(
                new DatabasePropertyTestSetup(
                    new DatabaseMetaDataTest("recompileTimeoutTest"),
                    props, true)));

        return suite;
    }
View Full Code Here

        // then switch the statement cache size to 0, so that doesn't
        // interfere and previous tests' left-overs are gone.
        props.setProperty("derby.storage.indexStats.auto", "false");
        props.setProperty("derby.language.statementCacheSize", "0");
        // set the props, and boot the db
        Test test = new DatabasePropertyTestSetup(
            new BaseTestSuite(SelectivityTest.class), props, true);
       
        return new CleanDatabaseTestSetup(test) {
            protected void decorateSQL(Statement s) throws SQLException
            {       
View Full Code Here

        Properties props = new Properties();
        props.setProperty("derby.locks.waitTimeout", "90");
        props.setProperty("derby.language.stalePlanCheckInterval", "5");
        suite.addTest(
            TestConfiguration.singleUseDatabaseDecorator(
                new DatabasePropertyTestSetup(
                    new DatabaseMetaDataTest("recompileTimeoutTest"),
                    props, true)));

        return suite;
    }
View Full Code Here

    // required by this test (and shutdown the database for the
        // property to take effect.
    Properties props = new Properties();
      props.setProperty("derby.database.sqlAuthorization", "true");
      Test test = new SQLAuthorizationPropTest("grantRevokeAfterSettingSQLAuthProperty");
      suite.addTest(new DatabasePropertyTestSetup (test, props, true));
     
      // This test has to be run after SQL authorization property has been
      // set to true.
      suite.addTest(new SQLAuthorizationPropTest("resetSQLAuthProperty"));
     
View Full Code Here

    public static Test suite() {

        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() {
    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

    public static Test suite() {
        Properties props = new Properties();
        // Check for stale plans on every 10th execution (default 100) to
        // reduce the number of times we need to execute each statement.
        props.setProperty("derby.language.stalePlanCheckInterval", "10");
        Test suite = new DatabasePropertyTestSetup(
            new BaseTestSuite(StalePlansTest.class), props, true);
        return new CleanDatabaseTestSetup(suite);
    }
View Full Code Here

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

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

View Full Code Here

TOP

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

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.