Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.LocaleTestSetup


    {
        TestSuite suite = new TestSuite("errorcode Test");
       
        suite.addTest(TestConfiguration.defaultSuite(ErrorCodeTest.class));
       
        return new LocaleTestSetup(suite, Locale.ENGLISH);
    }
View Full Code Here


                "Empty LangProcedureTest. " +
                "JSR169 does not support jdbc:default:connection");
        } else {
            // fix locale since we need to check error messages
            return TestConfiguration.singleUseDatabaseDecorator(
                new LocaleTestSetup(
                    TestConfiguration.defaultSuite(LangProcedureTest.class),
                    Locale.ENGLISH));
        }
    }
View Full Code Here

       
        /* A single use database must be used to ensure the consistent output.
         * The output would change whether the test was being ran for the first
         * or subsequent times. */
        test = TestConfiguration.singleUseDatabaseDecorator(test);
        test = new LocaleTestSetup(test, serverLocale);
        // Install a security manager using the initial policy file.
        test = new SecurityManagerSetup(test, policyName);

        // Copy over the policy file we want to use.
        test = new SupportFilesSetup
View Full Code Here

                "Empty LangProcedureTest. " +
                "JSR169 does not support jdbc:default:connection");
        } else {
            // fix locale since we need to check error messages
            return TestConfiguration.singleUseDatabaseDecorator(
                new LocaleTestSetup(
                    TestConfiguration.defaultSuite(LangProcedureTest.class),
                    Locale.ENGLISH));
        }
    }
View Full Code Here

       
        /* A single use database must be used to ensure the consistent output.
         * The output would change whether the test was being ran for the first
         * or subsequent times. */
        test = TestConfiguration.singleUseDatabaseDecorator(test);
        test = new LocaleTestSetup(test, serverLocale);
        // Install a security manager using the initial policy file.
        return new SecurityManagerSetup(test, POLICY_FILE_NAME);
    }
View Full Code Here

    }
   
    public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite();
        suite.addTestSuite(UrlLocaleTest.class);
        suite.addTest(new LocaleTestSetup(
                new UrlLocaleTest("messageLocale_unknown"),
                new Locale("rr", "TT")));
        suite.addTest(new LocaleTestSetup(
                new UrlLocaleTest("messageLocale_Germany"),
                Locale.GERMANY));

        Test tsuite =  new CleanDatabaseTestSetup(suite) {
            /**
 
View Full Code Here

        props.setProperty("derby.infolog.append", "true")
        props.setProperty("ij.protocol", "jdbc:derby:");
        props.setProperty("ij.database", "wombat;create=true");

        Test test = new SystemPropertyTestSetup(new ij2Test("ij2"), props);
        test = new LocaleTestSetup(test, Locale.ENGLISH);  
        test = TestConfiguration.singleUseDatabaseDecorator(test, "wombat1");
        test = new CleanDatabaseTestSetup(test);

        BaseTestSuite suite = new BaseTestSuite("ij2Scripts");
        suite.addTest(test);

        if (JDBC.vmSupportsJDBC3()) {
            props.setProperty("ij.protocol", "jdbc:derby:");
            props.setProperty("ij.showNoConnectionsAtStart", "true");
           
            Test testb = new SystemPropertyTestSetup(new ij2Test("ij2b"), props);
            testb = new LocaleTestSetup(testb, Locale.ENGLISH);  
            testb = TestConfiguration.singleUseDatabaseDecorator(testb, "wombat1");
            testb = new CleanDatabaseTestSetup(testb);
            suite.addTest(testb);
        }
        return getIJConfig(suite);
View Full Code Here

            isClient=false;

        Test suite = new BaseTestSuite(
            SysinfoCPCheckTest.class, "Sysinfo ClassPath Checker");

        return new LocaleTestSetup(suite, Locale.ENGLISH);
    }
View Full Code Here

   
        // This test should run in English locale since it compares error
        // messages against a canon based on the English message text. Also,
        // run the test in a fresh database, since the language of the message
        // text is determined when the database is created.       
        test = new LocaleTestSetup(test, Locale.ENGLISH)
        test = TestConfiguration.singleUseDatabaseDecorator(test);
   
    suite.addTest(new CleanDatabaseTestSetup(test));

        return new SupportFilesSetup(suite, new String[] {
View Full Code Here

       
        /* A single use database must be used to ensure the consistent output.
         * The output would change whether the test was being ran for the first
         * or subsequent times. */
        test = TestConfiguration.singleUseDatabaseDecorator(test);
        test = new LocaleTestSetup(test, serverLocale);
        // Install a security manager using the initial policy file.
        test = new SecurityManagerSetup(test, policyName);

        // Copy over the policy file we want to use.
        test = new SupportFilesSetup
View Full Code Here

TOP

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

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.