Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.DatabasePropertyTestSetup


        sysprops.put("derby.storage.keepTransactionLog", "true");
        sysprops.put("derby.language.logStatementText", "true");
        sysprops.put("derby.infolog.append", "true");
        Test embedded = new TestSuite(StressMultiTest.class);
        embedded = new SystemPropertyTestSetup(embedded,sysprops,true);
        embedded = new DatabasePropertyTestSetup(embedded,dbprops);
        embedded = TestConfiguration.singleUseDatabaseDecorator(newCleanDatabase(embedded));
        return embedded;
    }
View Full Code Here


        //#drda property ,test for it in sysinfo output
        sysprops.put("derby.drda.securityMechanism","USER_ONLY_SECURITY");
        Test test = new SystemPropertyTestSetup(decorateTest(), sysprops);
        Properties prop = new Properties();
        prop.put("derby.locks.waitTimeout","120");
        test = new DatabasePropertyTestSetup(test, prop);
        //suite.addTest(new SystemPropertyTestSetup(decorateTest(), props));
        suite.addTest(test);

        return suite;
    }
View Full Code Here

        Properties sysprops = new Properties();
        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() {
        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 TestSuite(StalePlansTest.class), props, true);
        return new CleanDatabaseTestSetup(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

        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

        // set timeouts so that the tests finish sooner
        prop.setProperty("derby.locks.waitTimeout", "4");
        prop.setProperty("derby.locks.deadlockTimeout", "2");
        // make sure lock table is dumped on wait timeout
        prop.setProperty("derby.locks.deadlockTrace", "true");
        test = new DatabasePropertyTestSetup(test, prop);
        return test;
    }
View Full Code Here

        // Note, that authentication is not switched on.
        dbprops.setProperty("derby.infolog.append", "true");
        dbprops.setProperty("derby.debug.true", "AuthenticationTrace");
        dbprops.setProperty("derby.user.APP", "xxxx");
        dbprops.setProperty("derby.user.testuser", "testpass");
        test = new DatabasePropertyTestSetup (test, dbprops, true);
        suite.addTest(test);
    }
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

            Properties p = new Properties();
            p.setProperty("derby.locks.deadlockTrace", "true");

            suites[i].addTest
                (DatabasePropertyTestSetup.setLockTimeouts
                 (new DatabasePropertyTestSetup
                  (new LazyDefaultSchemaCreationTest
                   ("testDerby48SelfLockingRecoveryDeadlockDetectionOn"),
                   p, false),
                  2,   // deadlock timeout
                  1)); // wait timeout

            suites[i].addTest
                (DatabasePropertyTestSetup.setLockTimeouts
                 (new DatabasePropertyTestSetup
                  (new LazyDefaultSchemaCreationTest
                   ("testDerby3678"),
                   p, false),
                  2,   // deadlock timeout
                  1)); // wait timeout
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.