Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SupportFilesSetup


    public static Test suite() {       
        Test test = TestConfiguration.embeddedSuite(ImportExportProcedureTest.class);
        Properties attributes = new Properties();
        attributes.put("territory","es_MX");
        test = Decorator.attributesDatabase(attributes, test);
        return new SupportFilesSetup(test, new String[] {
                "functionTests/testData/ImportExport/db2ttypes.del",
                "functionTests/testData/ImportExport/mixednl.del",
                "functionTests/testData/ImportExport/position_info.del"
        });
    }
View Full Code Here


        BaseTestSuite suite = new BaseTestSuite("I18NImportExport");
        suite.addTest(
                new CleanDatabaseTestSetup(
                new I18NImportExport("I18NImportExport")));
       
        return getIJConfig(new SupportFilesSetup(suite, new String[] {
                "functionTests/tests/i18n/data/Tab1_fr.ctrl",
                "functionTests/tests/i18n/data/Tab1_il.ctrl",
                "functionTests/tests/i18n/data/Tab1_jp.ctrl" } ));
    }
View Full Code Here

    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("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

        super(name);
    }

   public static Test basesuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(CheckToursDBTest.class, name);
        Test test = new SupportFilesSetup(suite, new String[] {
                "functionTests/tests/demo/cupisle.gif",
                "functionTests/tests/demo/smallisle.gif",
                "functionTests/tests/demo/witchisle.gif" });
        return test;
    }
View Full Code Here

    public static Test baseSuite(String name) {
        BaseTestSuite suite =
            new BaseTestSuite(ConnectionMethodsTest.class, name);

        Test test = new SupportFilesSetup(suite, new String[] {"functionTests/testData/ConnectionMethods/short.txt"} );
        return new CleanDatabaseTestSetup(test) {
            protected void decorateSQL(Statement s) throws SQLException {
                s.execute("create table clobtable2(n int,clobcol CLOB)");
                s.execute("create table blobtable2(n int,blobcol BLOB)");
                s.execute("create table abort_table(a int)");
View Full Code Here

            // This test only works with jar files.
            return suite;
        }

        suite.addTest(
                new SupportFilesSetup(
                        makeTest("testMissingFilePermission",
                                POLICY_MINUS_FILEPERMISSION_T),
                        new String[] {
                            POLICY_MINUS_FILEPERMISSION_R}));
View Full Code Here

  public static Test suite()
    {
        BaseTestSuite baseTest = new BaseTestSuite( Test_6661.class, "Test_6661" );
        Test        singleUseWrapper = TestConfiguration.singleUseDatabaseDecorator( baseTest );
        Test        cleanDatabaseWrapper = new CleanDatabaseTestSetup( singleUseWrapper );
        Test        supportFileWrapper = new SupportFilesSetup( cleanDatabaseWrapper );
        Test        noSecurityWrapper = SecurityManagerSetup.noSecurityManager( supportFileWrapper );

        return noSecurityWrapper;
  }
View Full Code Here

        return suite;
  }
 
  public static Test baseSuite(String name) {
        BaseTestSuite suite = new BaseTestSuite(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

        test = new LocaleTestSetup(test, Locale.ENGLISH)
        test = TestConfiguration.singleUseDatabaseDecorator(test);
   
    suite.addTest(new CleanDatabaseTestSetup(test));

        return 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

    {
        BaseTestSuite suite = new BaseTestSuite("Upgrade trajectory test");

        addTrajectories( suite );
       
        Test sfs = new SupportFilesSetup((Test) suite);

        return SecurityManagerSetup.noSecurityManager( sfs );
    }
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.