Examples of SystemPropertyTestSetup


Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        Properties sysprops = new Properties();
        sysprops.put("derby.storage.keepTransactionLog", "true");
        sysprops.put("derby.language.logStatementText", "true");
        sysprops.put("derby.infolog.append", "true");
        Test embedded = new TestSuite(StressMultiTest.class);
        embedded = new SystemPropertyTestSetup(embedded,sysprops,true);
        embedded = new DatabasePropertyTestSetup(embedded,dbprops);
        // make this a singleUseDatabase so the datbase and
        // transaction log will be preserved.
        embedded = TestConfiguration.singleUseDatabaseDecorator(newCleanDatabase(embedded));
        // SystemPropertyTestSetup for static properties
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        Properties sysprops = new Properties();
        sysprops.put("derby.storage.keepTransactionLog", "true");
        sysprops.put("derby.language.logStatementText", "true");
        sysprops.put("derby.infolog.append", "true");
        Test embedded = new TestSuite(StressMultiTest.class);
        embedded = new SystemPropertyTestSetup(embedded,sysprops,true);
        embedded = new DatabasePropertyTestSetup(embedded,dbprops);
        embedded = TestConfiguration.singleUseDatabaseDecorator(newCleanDatabase(embedded));
        return embedded;
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

    private static TestSuite decorateSystemPropertyTests(TestSuite suite) {
        Properties traceProps = new Properties();
        traceProps.put("derby.drda.traceDirectory","/");
        traceProps.put("derby.drda.traceAll","true");
        suite.addTest(new SystemPropertyTestSetup(TestConfiguration.clientServerDecorator(
                new NetworkServerControlApiTest("xtestTraceSystemPropertiesNoPermission")),
                    traceProps));
       
        Properties traceProps2 = new Properties();
       
        traceProps2.put("derby.drda.traceDirectory",getSystemProperty("derby.system.home") + "/trace");
        traceProps2.put("derby.drda.traceAll","true");
        suite.addTest(new SystemPropertyTestSetup(TestConfiguration.clientServerDecorator(
                new NetworkServerControlApiTest("xtestTraceSystemPropertiesHasPermission")),
                    traceProps2));
       
        return suite;
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        TestSuite suite = new TestSuite("localized scripts");
        Properties uiProps = new Properties();

        uiProps.put("derby.ui.locale","de_DE");
        uiProps.put("derby.ui.codeset","ISO-8859-1");
        suite.addTest(new SystemPropertyTestSetup(
                new LocalizedAttributeScriptTest("LocalizedConnectionAttribute"), uiProps));
       
        return getIJConfig(suite);
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        // Note: can't use $derbyTesting.codeclasses as on windows it has
        // the slashes adjusted.
        if (!TestConfiguration.loadingFromJars()) {
            Properties propstmp = new Properties();
            propstmp.put("sysinfotest.classesdir", findClassDir());
            suite.addTest(new SystemPropertyTestSetup(decorateTest(), propstmp));
        }
        else
            suite.addTest(decorateTest());

        useProperties = true;
        Properties props = new Properties();
        if (!TestConfiguration.loadingFromJars())
            props.put("sysinfotest.classesdir", findClassDir());
        props.put("derby.infolog.append","true");
        props.put("derby.locks.waitTimeout","120");
        props.put("derby.language.logStatementText","true");
        //#drda property ,test for it in sysinfo output
        props.put("derby.drda.securityMechanism","USER_ONLY_SECURITY");
        suite.addTest(new SystemPropertyTestSetup(decorateTest(), props));

        return suite;
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

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

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

       
        Properties preReleaseUpgrade = new Properties();
        preReleaseUpgrade.setProperty(
                "derby.database.allowPreReleaseUpgrade", "true");
       
        setup = new SystemPropertyTestSetup(setup, preReleaseUpgrade);
  
        return SecurityManagerSetup.noSecurityManager(setup);
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        // turn on log statement text for sequence of statements in derby.log. 
        if (verbose_debug)
        {
            Properties props = new Properties();
            props.setProperty("derby.language.logStatementText", "true");
            test = new SystemPropertyTestSetup(test, props);
        }

        return test;
    }
View Full Code Here

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

       public static Test suite() {
        Test suite =  TestConfiguration.defaultSuite(BlobMemTest.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

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup

        TestSuite suite = new TestSuite("StreamingColumnTest");
        suite.addTest(baseSuite("StreamingColumnTest:embedded"));
        suite
                .addTest(TestConfiguration
                        .clientServerDecorator(baseSuite("StreamingColumnTest:client")));
        return new SystemPropertyTestSetup(suite, strColProperties);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.