Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.BaseTestSuite


    public DerbyVersionTest(String name) {
        super(name);
    }
    public static Test suite() {
        return new BaseTestSuite(
            DerbyVersionTest.class, "DerbyVersionTest tests");
    }
View Full Code Here


    /**
     * Returns a suite of tests.
     */
    public static Test suite() {
        return new BaseTestSuite(
            InputStreamUtilTest.class, "InputStreamUtil tests");
    }
View Full Code Here

    public AssertFailureTest(String name) {
        super(name);
    }

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

        try {
            //Only add the tests if this is a sane build.
            Class.forName("org.apache.derby.shared.common.sanity." +
                "AssertFailure");

            // Run with thread dump permissions
            suite.addTest(new SecurityManagerSetup(new AssertFailureTest(
                "testAssertFailureThreadDump"), POLICY_FILENAME));

            // Run WITHOUT thread dump permissions
            suite.addTest(new SecurityManagerSetup(new AssertFailureTest(
                "testAssertFailureNoThreadDump"), NO_DUMP_POLICY_FILENAME));

        } catch (ClassNotFoundException e) {
            //Ignore. Just return an empty suite.
        }
View Full Code Here

        CharacterStreamDescriptor csd4 = b4.build();
        assertEquals(csd1.getMaxCharLength(), csd4.getMaxCharLength());
    }

    public static Test suite() {
        return new BaseTestSuite(CharacterStreamDescriptorTest.class,
                "CharacterStreamDescriptorTest suite");
    }
View Full Code Here

    /**
     * Returns a suite of tests.
     */
    public static Test suite() {
        return new BaseTestSuite(
            DataInputUtilTest.class, "DataInputUtilTest tests");
    }
View Full Code Here

    public ReaderToUTF8StreamTest(String name) {
        super(name);
    }

    public static Test suite() {
        return new BaseTestSuite(ReaderToUTF8StreamTest.class);
    }
View Full Code Here

     * Return a suite with all tests in this class (default suite)
     *
     * @throws Exception
     */
    public static Test suite() {
        BaseTestSuite ts = new BaseTestSuite(FormatableBitSetTest.class,
                             "FormatableBitSetTest suite");

        if (bitCount != null) {
            ts.addTest(new FormatableBitSetTest("numBitsSetInOneByte"));
            ts.addTest(new FormatableBitSetTest("numBitsSetInTwoBytes"));
        }

        return ts;
    }
View Full Code Here

        assertEquals("c1.dat",
                PathUtil.getBaseName(joinAbs("aDir", "seg0","c1.dat")));
    }

    public static Test suite() {
        return new BaseTestSuite(PathUtilTest.class, "PathUtilTest suite");
    }
View Full Code Here

* Unit tests for {@code org.apache.derby.iapi.services.io.ArrayInputStream}.
*/
public class ArrayInputStreamTest extends BaseTestCase {

    public static Test suite() {
        return new BaseTestSuite(ArrayInputStreamTest.class);
    }
View Full Code Here

        // The second close() used to throw NullPointerException (DERBY-5960)
        raf.close();
    }

    public static Test suite() {
        return new BaseTestSuite(VirtualFileTest.class);
    }
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.