Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.SystemPropertyTestSetup


        props.setProperty("derby.authentication.provider", "BUILTIN");
        props.setProperty("derby.user." + user, password);

        Test test = new NetworkServerControlApiTest(testName);
        test = TestConfiguration.clientServerDecorator(test);
        test = new SystemPropertyTestSetup(test, props, true);
        test = TestConfiguration.changeUserDecorator(test, user, password);
        return test;
    }
View Full Code Here


        }
       
        props.setProperty("ij.showNoConnectionsAtStart", "false");
        props.setProperty("ij.showNoCountForSelect", "false");

        Test test = new SystemPropertyTestSetup(new ij5Test("ij5"), props);
        test = new CleanDatabaseTestSetup(test);  
       
        return getIJConfig(test);
    }  
View Full Code Here

        setup =  TestConfiguration.additionalDatabaseDecorator( setup, COMPARISON_DATABASE );

        Properties preReleaseUpgrade = new Properties();
        preReleaseUpgrade.setProperty( "derby.database.allowPreReleaseUpgrade", "true");
       
        setup = new SystemPropertyTestSetup(setup, preReleaseUpgrade );

        // If the first release in the trajectory pre-dates the release which
        // introduced JDBC4, force the client to be the JDBC3 client. This
        // prevents us from falling through and picking up the JDBC4 data source from
        // the system classpath rather than picking up a datasource from
View Full Code Here

        Properties p = new Properties();
        p.put("derby.storage.useDefaultFilePermissions", "false");
        p.put("derby.stream.error.file", derbyDotLog);

        totalSuite.addTest(
            new SystemPropertyTestSetup(
                TestConfiguration.singleUseDatabaseDecorator(
                    new SupportFilesSetup(
                        new BaseTestSuite(
                            RestrictiveFilePermissionsTest.class,
                            "haveWeGotAllCreatedFilesSuite"),
                        new String[] {"functionTests/tests/lang/dcl_id.jar"}),
                    dbName),
                p,
                true));

        // Next, test deployment modes, since default settings depend on them

        // For server started from command line, we should still get secure
        // permissions.
        if (Derby.hasServer()) {
            totalSuite.addTest(
                new NetworkServerTestSetup(
                    new RestrictiveFilePermissionsTest(
                        "doTestCliServerIsRestrictive"),
                    new String[]{}, // system properties
                    new String[]{}, // non-default start up arguments
                    true));
        }

        // For server started from API, we should see lax permissions.
        //
        if (supportsLaxTesting) {
            totalSuite.addTest(
                TestConfiguration.clientServerDecorator(
                    new RestrictiveFilePermissionsTest(
                        "doTestNonCliServerIsLax")));

            // For embedded, we should see lax permissions also.
            //
            p = new Properties();
            p.put("derby.stream.error.file", derbyDotLog + ".lax");

            totalSuite.addTest(
                new SystemPropertyTestSetup(
                    new RestrictiveFilePermissionsTest("dotestEmbeddedIsLax"),
                    p,
                    true));
        }
View Full Code Here

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

      Properties props = new Properties();       
        props.setProperty("ij.connection.wrongSubprotocol", "jdbc:noone:fruitfly;create=true");
       
        Test test = TestConfiguration.embeddedSuite(ConnectWrongSubprotocolTest.class);
       
      return new SystemPropertyTestSetup(test, props);
    }
View Full Code Here

                test, DEADLOCK_TIMEOUT, LOCK_TIMEOUT);
        Properties syspros = new Properties();
        //Derby-4856 interrupt error create thread dump and diagnostic
        //info. Add property to avoid the information.
        syspros.put("derby.stream.error.extendedDiagSeverityLevel", "50000");
        test = new SystemPropertyTestSetup(test, syspros, true);
       

        return new CleanDatabaseTestSetup(test);
    }
View Full Code Here

        props.setProperty("ij.connection.connFour", "jdbc:derby:nevercreated");    
       
        props.setProperty("ij.showNoConnectionsAtStart", "true");
        props.setProperty("ij.showNoCountForSelect", "true");
       
        Test test = new SystemPropertyTestSetup(new IjConnNameTest(test_script), props);
        //test = SecurityManagerSetup.noSecurityManager(test);
        test = new CleanDatabaseTestSetup(test);  
       
        return getIJConfig(test);
    }
View Full Code Here

       
        props.setProperty("ij.database", "jdbc:derby:wombat;create=true");
        props.setProperty("ij.showNoConnectionsAtStart", "true");
        props.setProperty("ij.showNoCountForSelect", "true");

        Test test = new SystemPropertyTestSetup(new ij3Test("ij3"), props);
        test = new CleanDatabaseTestSetup(test);  
       
        return getIJConfig(test);
    }  
View Full Code Here

        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

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.