Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup


            db3.addTest(new BootAllTest("shutdownDerby"));
           
            Properties ba = new Properties();
            ba.setProperty("derby.system.bootAll", "true");
           
            db3.addTest(new SystemPropertyTestSetup(
                    new BootAllTest("testSettingBootAllPropertyWithHomePropertySet"),
                    ba));
           
            // Suite to create the second database (middle) and
            // embed in it the third database suite.
View Full Code Here


    public static Test suite() {
        Test suite =  TestConfiguration.defaultSuite(ClobMemTest.class);
        Properties p = new Properties();
        // use small pageCacheSize so we don't run out of memory on the insert.
        p.setProperty("derby.storage.pageCacheSize", "100");
        return new SystemPropertyTestSetup(suite,p);
    }
View Full Code Here

        sysprops.put("derby.user.system", "admin");
        sysprops.put("derby.user.mickey", "mouse");
        test = DatabasePropertyTestSetup.builtinAuthentication(test,
            USERS, PASSWORD_SUFFIX);
        test = new DatabasePropertyTestSetup (test, props, true);
        suite.addTest(new SystemPropertyTestSetup (test, sysprops));
    }
View Full Code Here

            systemProperties = systemProperties( credentialsDBPhysicalName );
        } catch (Exception e) { printStackTrace( e ); }

        println( nameOfTest() );
        println( "    NativeAuthenticationServiceTest.decorate() systemProperties = " + systemProperties );
        result = new SystemPropertyTestSetup( result, systemProperties, true );
       
        // DERBY-5580: We should also shut down the engine before deleting
        // the database if we don't set any system properties.
        //result = new TestSetup(result) {
        //        protected void tearDown() {
View Full Code Here

        // interest if the test passes. Setting the stream error level
        // so we don't get those javacores.
        p.put("derby.stream.error.extendedDiagSeverityLevel", "50000");

        suite.addTest(
                new SystemPropertyTestSetup(est, p, true));

        suite.addTest(
                new SystemPropertyTestSetup(cst, p, true));
        return suite;
    }
View Full Code Here

        // Adjust sort buffer size to trigger the bug situation with less data.
        props.setProperty("derby.storage.sortBufferMax", "4");
        BaseTestSuite suite = new BaseTestSuite(LobSortTest.class,
                                        "LobSortTestEmbedded");
        return new CleanDatabaseTestSetup(
                new SystemPropertyTestSetup(suite, props, true)) {
            /**
             * Generates a table with Blob and Clobs of mixed size.
             */
            protected void decorateSQL(Statement s)
                    throws SQLException {
View Full Code Here

            protected void decorateSQL(Statement s)
                           throws SQLException {
                setupTables(s, biggestSize, bigSize);
            }
        };
        suite = new SystemPropertyTestSetup(suite,sysprops);

        return new SupportFilesSetup(suite);
    }
View Full Code Here

        BaseTestSuite suite = new BaseTestSuite("StreamingColumnTest");
        suite.addTest(baseSuite("StreamingColumnTest:embedded"));
        suite
                .addTest(TestConfiguration
                        .clientServerDecorator(baseSuite("StreamingColumnTest:client")));
        return new SystemPropertyTestSetup(suite, strColProperties);
    }
View Full Code Here

    private static Test getSuite() {
        BaseTestSuite suite = new BaseTestSuite("localized Display");
        Properties uiProps = new Properties();
        uiProps.put("derby.ui.locale","es_AR");
        uiProps.put("derby.ui.codeset", ENCODING);
        suite.addTest(new TimeZoneTestSetup(new SystemPropertyTestSetup(
                new LocalizedDisplayScriptTest("LocalizedDisplay"), uiProps),
                "America/Los_Angeles"));
        return getIJConfig(suite);
    }
View Full Code Here

        if (JDBC.vmSupportsJSR169() && !isJ9Platform()) {
            // PhoneME requires forceDatabaseLock
            Properties props = new Properties();
            props.setProperty("derby.database.forceDatabaseLock", "true");
            test = new SystemPropertyTestSetup(test, props, true);
        }

        test = TestConfiguration.singleUseDatabaseDecorator(test, dbName);

        test = SecurityManagerSetup.noSecurityManager(test);
View Full Code Here

TOP

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

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.