Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


        super( testcaseName, user, password );
    }
   
    public static Test suite()
    {
        BaseTestSuite suite = new BaseTestSuite("ReplicationRun_Local Suite");
       
        suite.addTestSuite( ReplicationRun_Local.class );
       
        return SecurityManagerSetup.noSecurityManager(suite);

    }
View Full Code Here


   
    public static Test localAuthenticationSuite()
    {
        String      user = "KIWI";
        String      password = "KIWI_password";
        BaseTestSuite suite = new BaseTestSuite(
            "ReplicationRun_Local Suite Local Authentication Suite");

        suite.addTest( new ReplicationRun_Local( "testReplication_Local_TestStraightReplication", user, password ) );
        suite.addTest( new ReplicationRun_Local( "testReplication_Local_LogFilesSynched", user, password ) );

        return SecurityManagerSetup.noSecurityManager( suite );
    }
View Full Code Here

    public static Test suite() {
        if (JDBC.vmSupportsJDBC3()) {
            return TestConfiguration.defaultSuite(XAMemTest.class);
        }

        return new BaseTestSuite(
            "XAMemTest skipped - XADataSource not available");
    }
View Full Code Here

     * @param phase an integer that indicates the current phase in
     *              the upgrade test.
     * @return the test suite created.
     */
    public static Test suite(int phase) {
        return new BaseTestSuite(Changes10_11.class, "Upgrade test for 10.11");
    }
View Full Code Here

        throws Exception
    {
        System.out.println("**** DestroySlaveDB.suite()");
        System.out.println("'DestroySlaveDB' can not be run outside the 'ReplicationRun' framework.");
       
        BaseTestSuite suite = new BaseTestSuite("DestroySlaveDB");
       
        String masterHostName = System.getProperty("test.serverHost", "localhost");
        int masterPortNo = Integer.parseInt(System.getProperty("test.serverPort", "1527"));
       
        repRun.initEnvironment();
        slaveServerHost = ReplicationRun.slaveServerHost;
       
        suite.addTest(DestroySlaveDB.suite(masterHostName,masterPortNo));
        return (Test)suite;
    }
View Full Code Here

     * @return A suite of tests.
     * @throws Exception if creating the suite fails for some reason
     */
    public static Test suite()
            throws Exception {
        BaseTestSuite suite = new BaseTestSuite("Derby DRDA protocol tests");
        // Process the list of files and create test cases for the sub-tests.
        // NOTE: We cannot assume anything about the order in which the tests
        //      are executed.
        final String testFile = PREFIX + "protocol.tests";
        final URL testFileURL = BaseTestCase.getTestResource(testFile);
        BufferedReader bIn = new BufferedReader(
                new InputStreamReader(
                    openTestResource(testFileURL),
                    Charset.forName("UTF-8")));

        // Split the tests into individual tests.
        final String END_TEST = ProtocolTestGrammar.END_TEST.toCmdString();
        int currentLine = 1;
        int startLine = 1; // First line is line number one.
        ArrayList<String> cmdLines = new ArrayList<String>();
        StringBuilder str = new StringBuilder();
        String line;
        // Iterate until the end of test token is reached.
        while ((line = bIn.readLine()) != null) {
            cmdLines.add(line);
            str.append(line).append(NL);
            if (line.toLowerCase(Locale.ENGLISH).startsWith(END_TEST)) {
                // Create a new test case.
                suite.addTest(new ProtocolTest(
                        "protocol.tests",
                        str.toString(),
                        startLine,
                        currentLine - startLine));
                cmdLines.clear();
View Full Code Here

    }
   
    public static Test suite()
    {
        BaseTestSuite suite =
            new BaseTestSuite("ReplicationRun_Local_3_p5 Suite");
       
        suite.addTestSuite( ReplicationRun_Local_3_p5.class);
       
        return SecurityManagerSetup.noSecurityManager(suite);

    }
View Full Code Here

        System.out.println("**** ShutdownSlaveDb.suite()");
        System.out.println("'ShutdownSlaveSDb' can not be run outside the 'ReplicationRun' framework.");
       
        setEnv();
       
        BaseTestSuite suite = new BaseTestSuite("ShutdownSlaveDb");
        suite.addTest(ShutdownSlaveDb.suite(masterServerHost, masterServerPort));
        return (Test)suite;
    }
View Full Code Here

     * @param phase an integer that indicates the current phase in
     *              the upgrade test.
     * @return the test suite created.
     */
    public static Test suite(int phase) {
        BaseTestSuite suite = new BaseTestSuite("Upgrade test for 10.6");

        suite.addTestSuite(Changes10_6.class);
        return new SupportFilesSetup((Test) suite);
    }
View Full Code Here

        super(name);
    }

    public static Test suite() {

        BaseTestSuite suite = new BaseTestSuite("store");

        suite.addTest(BootAllTest.suite());
        suite.addTest(ClassLoaderBootTest.suite());
        suite.addTest(StreamingColumnTest.suite());
        suite.addTest(Derby3625Test.suite());
        suite.addTest(Derby4577Test.suite());
        suite.addTest(InterruptResilienceTest.suite());
        suite.addTest(Derby4676Test.suite());
        suite.addTest(BootLockTest.suite());
        suite.addTest(UpdateLocksTest.suite());
        suite.addTest(PositionedStoreStreamTest.suite());
        suite.addTest(OSReadOnlyTest.suite());
        suite.addTest(BackupRestoreTest.suite());
        suite.addTest(OfflineBackupTest.suite());
        suite.addTest(LiveLockTest.suite());
        suite.addTest(ClobReclamationTest.suite());
        suite.addTest(IndexSplitDeadlockTest.suite());
        suite.addTest(HoldCursorJDBC30Test.suite());
        suite.addTest(AccessTest.suite());
        suite.addTest(AutomaticIndexStatisticsTest.suite());
        suite.addTest(Derby5582AutomaticIndexStatisticsTest.suite());
        suite.addTest(AutomaticIndexStatisticsMultiTest.suite());
        suite.addTest(BTreeMaxScanTest.suite());
        suite.addTest(MadhareTest.suite());
        suite.addTest(LongColumnTest.suite());
        suite.addTest(RowLockBasicTest.suite());
        suite.addTest(RecoveryTest.suite());
        suite.addTest(OCRecoveryTest.suite());
        suite.addTest(TableLockBasicTest.suite());
        suite.addTest(ServicePropertiesFileTest.suite());
        suite.addTest(Derby5234Test.suite());
        suite.addTest(KeepDisposableStatsPropertyTest.suite());
        suite.addTest(LockTableVtiTest.suite());
        suite.addTest(StoreScriptsTest.suite());
        suite.addTest(Derby4923Test.suite());
        suite.addTest(SpaceTableTest.suite());
       
        /* Tests that only run in sane builds */
        if (SanityManager.DEBUG) {
            suite.addTest(HoldCursorExternalSortJDBC30Test.suite());
        }

        // Encryption only supported for Derby in J2SE/J2EE environments.
        // J2ME (JSR169) does not support encryption.
        if (JDBC.vmSupportsJDBC3()) {
            // Add tests of basic functionality on encrypted databases.
            suite.addTest(EncryptionKeyAESTest.suite());
            suite.addTest(EncryptionKeyBlowfishTest.suite());
            suite.addTest(EncryptionKeyDESTest.suite());
            suite.addTest(EncryptionAESTest.suite());
            suite.addTest(EncryptDatabaseTest.suite());
            suite.addTest(CryptoCrashRecoveryTest.suite());
            suite.addTest(DecryptDatabaseTest.suite());
        }

        return suite;
    }
View Full Code Here

TOP

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

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.