Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.CleanDatabaseTestSetup


    }

    private static Test baseSuite(String name) {
        TestSuite suite = new TestSuite(
                BlobClob4BlobTest.class, "BlobClob4BlobTest:" + name);
        return new CleanDatabaseTestSetup(
                DatabasePropertyTestSetup.setLockTimeouts(suite, 2, 4));
    }
View Full Code Here


     * this is testing server-side behaviour.
     **/
    public static Test suite() {
        Test suite = TestConfiguration.embeddedSuite(CoalesceTest.class);
       
        return new CleanDatabaseTestSetup(suite)
        {
            protected void decorateSQL(Statement stmt) throws SQLException
            {
                for (int i = 0; i < TABLES.length; i++) {
                    stmt.execute(TABLES[i]);
View Full Code Here

    /**
     * Create a suite of tests.
     */
    public static Test suite() {
        TestSuite suite = new TestSuite(SynonymTest.class, "SynonymTest");
        return new CleanDatabaseTestSetup(suite);
    }
View Full Code Here

     * Run only in embedded as TRIGGERs are server side logic.
     * Also the use of a ThreadLocal to check state requires
     * embedded.
     */
    public static Test suite() {
        return new CleanDatabaseTestSetup(
                TestConfiguration.embeddedSuite(TriggerTest.class));
       
    }
View Full Code Here

    public static Test suite()
    {
        TestSuite suite = new TestSuite("views Test");
        suite.addTest(TestConfiguration.embeddedSuite(ViewsTest.class));
        return new CleanDatabaseTestSetup(suite);
    }
View Full Code Here

        if (JDBC.vmSupportsJSR169())
            return new TestSuite("GrantRevokeDDLTest"); // return empty suite;
                //test uses triggers and procedures that use DriverManager.
        TestSuite suite = new TestSuite(GrantRevokeDDLTest.class, "GrantRevokeDDL Test");
      Test test = new SupportFilesSetup(suite);
      test = new CleanDatabaseTestSetup(test);
      test = DatabasePropertyTestSetup.builtinAuthentication(
        test, users, "grantrevokeddl");
        test = TestConfiguration.sqlAuthorizationDecorator(test);
       
        return test;
View Full Code Here

        // Need atleast JSR169 to run these tests
        if (!JDBC.vmSupportsJSR169() && !JDBC.vmSupportsJDBC3()) {
            return suite;
        }

        Test cleanTest = new CleanDatabaseTestSetup(suite);
        Test authenticatedTest = DatabasePropertyTestSetup.builtinAuthentication
                (cleanTest, LEGAL_USERS, "sequence");
        Test authorizedTest = TestConfiguration.sqlAuthorizationDecorator(authenticatedTest);

        return authorizedTest;
View Full Code Here

       
        // Code generation test, just invoke on embedded
        // as the main function is to test the byte code compiler.
        if (usingEmbedded()) {
            suite.addTestSuite(largeCodeGen.class);
            return new CleanDatabaseTestSetup(suite);
        }
        return suite;
    }
View Full Code Here

  private static Test getSuite(String[] list)
  {
        TestSuite suite = new TestSuite();
        for (int i = 0; i < list.length; i++)
            suite.addTest(
                new CleanDatabaseTestSetup(
                new LangScripts(list[i])));

        return getIJConfig(suite);
    }
View Full Code Here

            suiteUser = testUser;
           
            userSuite.addTest(test);
        }
       
       return new CleanDatabaseTestSetup(getIJConfig(suite));
    }
View Full Code Here

TOP

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

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.