Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.LocaleTestSetup


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


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

    }
   
    public static Test suite() {
        TestSuite suite = new TestSuite();
        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

  public static Test suite() {
        BaseTestSuite suite = new BaseTestSuite("LuceneSupportTest");

        Test    baseTest = TestConfiguration.embeddedSuite(LuceneSupportTest.class);
        Test        singleUseTest = TestConfiguration.singleUseDatabaseDecorator( baseTest );
        Test        localizedTest = new LocaleTestSetup( singleUseTest, new Locale( "en", "US" ) );
   
    suite.addTest(SecurityManagerSetup.noSecurityManager(localizedTest));
    return suite;
  }
View Full Code Here

            isServer=false;
        if (!Derby.hasClient())
            isClient=false;

        Test suite = new TestSuite(SysinfoCPCheckTest.class, "Sysinfo ClassPath Checker");       
        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

       
        /* 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

        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);

        TestSuite suite = new TestSuite("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

            isServer=false;
        if (!Derby.hasClient())
            isClient=false;

        Test suite = new TestSuite(SysinfoCPCheckTest.class, "Sysinfo ClassPath Checker");       
        return new LocaleTestSetup(suite, Locale.ENGLISH);
    }
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.