Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SupportFilesSetup


        bIn.close();

        // Copy the required include files.
        final String resourcePath = "functionTests/tests/derbynet";
        return TestConfiguration.clientServerDecorator(
                new SupportFilesSetup(suite, new String[] {
                        resourcePath + "/connect.inc",
                        resourcePath + "/excsat_accsecrd1.inc",
                        resourcePath + "/excsat_accsecrd2.inc",
                        resourcePath + "/excsat_accsecrd_nordb.inc",
                        resourcePath + "/excsat_secchk_nordbonaccsec.inc",
View Full Code Here


        // Copy over the policy file we want to use.
        String POLICY_FILE_NAME=
            "functionTests/tests/derbynet/SysinfoTest.policy";

        test = new SupportFilesSetup
        (
                test,
                null,
                new String[] { POLICY_FILE_NAME },
                null,
View Full Code Here

        // Install a security manager using the initial policy file.
        //
        test = new SecurityManagerSetup(test,serverPolicyName );
        // Copy over the policy file we want to use.
        //
        test = new SupportFilesSetup(
            test, null, new String[] {POLICY_FILE_NAME},
            null, new String[] {TARGET_POLICY_FILE_NAME}
        );
        return test;
    }
View Full Code Here

        //           
        //suite.addTest(TestConfiguration.clientServerDecorator(
        //             SecurityManagerSetup.noSecurityManager(
        //                 decorate(new NetHarnessJavaTest("testProtocol")))));

        return new SupportFilesSetup(suite,
                     new String[] {
                         "functionTests/tests/derbynet/protocol.tests",
                         "functionTests/tests/derbynet/excsat_accsecrd1.inc",
                         "functionTests/tests/derbynet/excsat_accsecrd2.inc",
                         "functionTests/tests/derbynet/excsat_secchk.inc",
View Full Code Here

        return suite;
  }
 
  public static Test baseSuite(String name) {
    TestSuite suite = new TestSuite(ImportExportTest.class, name);
    Test test = new SupportFilesSetup(suite, new String[] {"functionTests/testData/ImportExport/TwoLineBadEOF.dat"} );
    return new CleanDatabaseTestSetup(test) {
            protected void decorateSQL(Statement s) throws SQLException {

                s.execute( "create type Price external name 'org.apache.derbyTesting.functionTests.tests.lang.Price' language java" );
                s.execute( "create type hashmap external name 'java.util.HashMap' language java" );
View Full Code Here

        // server side, and import would be looking on the client.
        // Also, running client & embedded would require some cleanup magic to
        // remove the exported files (see e.g. ImportExportTest).
        suite.addTest(new CleanDatabaseTestSetup(
                        new ImportExportIJTest("importExportIJ")));
        Test tst = new SupportFilesSetup(suite, new String[] {
            "functionTests/testData/ImportExport/TwoLineBadEOF.dat",
            "functionTests/testData/ImportExport/NoEOR.dat",
            "functionTests/testData/ImportExport/Access1.txt",
            "functionTests/testData/ImportExport/AccountData_defaultformat.dat",
            "functionTests/testData/ImportExport/AccountData_format1.dat",
View Full Code Here

        // Install a security manager using the initial policy file.
        //
        test = new SecurityManagerSetup(test,serverPolicyName );
        // Copy over the policy file we want to use.
        //
        test = new SupportFilesSetup(
                test, null, new String[] {POLICY_FILE_NAME},
                null, new String[] {TARGET_POLICY_FILE_NAME}
        );
        return test;
       
View Full Code Here

    public static Test suite()
    {
        TestSuite suite = new TestSuite("ImportExportProcedureTest");
        suite.addTest(TestConfiguration.defaultSuite(ImportExportProcedureTest.class));
        return new SupportFilesSetup(suite, new String[] {
            "functionTests/testData/ImportExport/db2ttypes.del",
            "functionTests/testData/ImportExport/mixednl.del",
            "functionTests/testData/ImportExport/position_info.del"
        });
    }
View Full Code Here

     */
    public static Test suite(int phase) {
        TestSuite suite = new TestSuite("Upgrade test for 10.7");

        suite.addTestSuite(Changes10_7.class);
        return new SupportFilesSetup((Test) suite);
    }
View Full Code Here

     */
    public static Test suite(int phase) {
        TestSuite suite = new TestSuite("Upgrade test for 10.6");

        suite.addTestSuite(Changes10_6.class);
        return new SupportFilesSetup((Test) suite);
    }
View Full Code Here

TOP

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

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.