Package junit.extensions

Examples of junit.extensions.ActiveTestSuite


     *
     * @return The test suite
     */
    public static Test suite()
    {
        ActiveTestSuite suite = new ActiveTestSuite();

        suite.addTest( new IndexedDiskCacheNoMemoryUnitTest( "testIndexedDiskCache1" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "indexedRegion1" );
            }
        } );

        suite.addTest( new IndexedDiskCacheNoMemoryUnitTest( "testIndexedDiskCache2" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "indexedRegion2" );
            }
        } );

        suite.addTest( new IndexedDiskCacheNoMemoryUnitTest( "testIndexedDiskCache3" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "indexedRegion3" );
View Full Code Here


     * A unit test suite for JUnit
     * @return The test suite
     */
    public static Test suite()
    {
        ActiveTestSuite suite = new ActiveTestSuite();

        suite.addTest( new BlockDiskCacheSameRegionConcurrentUnitTest( "testBlockDiskCache1" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "blockRegion4", 0, 200 );
            }
        } );

        suite.addTest( new BlockDiskCacheSameRegionConcurrentUnitTest( "testBlockDiskCache2" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "blockRegion4", 1000, 1200 );
            }
        } );

        suite.addTest( new BlockDiskCacheSameRegionConcurrentUnitTest( "testBlockDiskCache3" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "blockRegion4", 2000, 2200 );
            }
        } );

        suite.addTest( new BlockDiskCacheSameRegionConcurrentUnitTest( "testBlockDiskCache4" )
        {
            public void runTest()
                throws Exception
            {
                this.runTestForRegion( "blockRegion4", 2200, 5200 );
View Full Code Here

     *
     * @return    The test suite
     */
    public static Test suite()
    {
        ActiveTestSuite suite = new ActiveTestSuite();
             
        suite.addTest( new TestDiskCache( "testIndexedDiskCache1" )
            {
                public void runTest() throws Exception
                {
                    runTestForRegion( "indexedRegion1" );
                }
            });

        suite.addTest( new TestDiskCache( "testIndexedDiskCache2" )
            {
                public void runTest() throws Exception
                {
                    runTestForRegion( "indexedRegion2" );
                }
            });

        suite.addTest( new TestDiskCache( "testIndexedDiskCache3" )
            {
                public void runTest() throws Exception
                {
                    runTestForRegion( "indexedRegion3" );
                }
View Full Code Here

        suite.addTest(new PackageTest("CSVBlankLine"));
        allsuites.addTest(suite);

        // Reset files
        suite.addTest(new PackageTest("CSVSetup"));
        TestSuite par = new ActiveTestSuite("Parallel");
        par.addTest(new PackageTest("CSVThread1"));
        par.addTest(new PackageTest("CSVThread2"));
        allsuites.addTest(par);

        TestSuite sff = new TestSuite("StringFromFile");
        sff.addTest(new PackageTest("SFFTest1"));
        sff.addTest(new PackageTest("SFFTest2"));
        sff.addTest(new PackageTest("SFFTest3"));
        sff.addTest(new PackageTest("SFFTest4"));
        sff.addTest(new PackageTest("SFFTest5"));
        allsuites.addTest(sff);

        TestSuite split = new TestSuite("SplitFunction");
        split.addTest(new PackageTest("splitTest1"));
        allsuites.addTest(split);

        TestSuite xpath = new TestSuite("XPath");
        xpath.addTest(new PackageTest("XPathtestColumns"));
        xpath.addTest(new PackageTest("XPathtestDefault"));
        xpath.addTest(new PackageTest("XPathtestNull"));
        xpath.addTest(new PackageTest("XPathtestrowNum"));
        xpath.addTest(new PackageTest("XPathEmpty"));
        xpath.addTest(new PackageTest("XPathFile1"));
        xpath.addTest(new PackageTest("XPathFile2"));
        xpath.addTest(new PackageTest("XPathNoFile"));

        allsuites.addTest(xpath);
       
        TestSuite random = new TestSuite("Random");
        random.addTest(new PackageTest("randomTest1"));
        allsuites.addTest(random);

        allsuites.addTest(new PackageTest("XPathSetup1"));
        TestSuite par2 = new ActiveTestSuite("ParallelXPath1");
        par2.addTest(new PackageTest("XPathThread1"));
        par2.addTest(new PackageTest("XPathThread2"));
        allsuites.addTest(par2);

        allsuites.addTest(new PackageTest("XPathSetup2"));
        TestSuite par3 = new ActiveTestSuite("ParallelXPath2");
        par3.addTest(new PackageTest("XPathThread1"));
        par3.addTest(new PackageTest("XPathThread2"));
        allsuites.addTest(par3);

        TestSuite variable = new TestSuite("Variable");
        variable.addTest(new PackageTest("variableTest1"));
        allsuites.addTest(variable);
View Full Code Here

        }
        super.tearDown();
    }

    public static Test suite(ConfigurationSource source) {
        TestSuite suite = new ActiveTestSuite();
        new DistributedTestSuiteBuilder(source).addTestsTo(suite);
        return suite;
    }
View Full Code Here

        suite.addTest(new PackageTest("CSVBlankLine"));
        allsuites.addTest(suite);

        // Reset files
        suite.addTest(new PackageTest("CSVSetup"));
        TestSuite par = new ActiveTestSuite("Parallel");
        par.addTest(new PackageTest("CSVThread1"));
        par.addTest(new PackageTest("CSVThread2"));
        allsuites.addTest(par);

        TestSuite sff = new TestSuite("StringFromFile");
        sff.addTest(new PackageTest("SFFTest1"));
        sff.addTest(new PackageTest("SFFTest2"));
        sff.addTest(new PackageTest("SFFTest3"));
        sff.addTest(new PackageTest("SFFTest4"));
        sff.addTest(new PackageTest("SFFTest5"));
        allsuites.addTest(sff);

        TestSuite split = new TestSuite("SplitFunction");
        split.addTest(new PackageTest("splitTest1"));
        allsuites.addTest(split);

        TestSuite xpath = new TestSuite("XPath");
        xpath.addTest(new PackageTest("XPathtestColumns"));
        xpath.addTest(new PackageTest("XPathtestDefault"));
        xpath.addTest(new PackageTest("XPathtestNull"));
        xpath.addTest(new PackageTest("XPathtestrowNum"));
        xpath.addTest(new PackageTest("XPathEmpty"));
        xpath.addTest(new PackageTest("XPathFile1"));
        xpath.addTest(new PackageTest("XPathFile2"));
        xpath.addTest(new PackageTest("XPathNoFile"));

        allsuites.addTest(xpath);
       
        TestSuite random = new TestSuite("Random");
        random.addTest(new PackageTest("randomTest1"));
        allsuites.addTest(random);

        allsuites.addTest(new PackageTest("XPathSetup1"));
        TestSuite par2 = new ActiveTestSuite("ParallelXPath1");
        par2.addTest(new PackageTest("XPathThread1"));
        par2.addTest(new PackageTest("XPathThread2"));
        allsuites.addTest(par2);

        allsuites.addTest(new PackageTest("XPathSetup2"));
        TestSuite par3 = new ActiveTestSuite("ParallelXPath2");
        par3.addTest(new PackageTest("XPathThread1"));
        par3.addTest(new PackageTest("XPathThread2"));
        allsuites.addTest(par3);

        TestSuite variable = new TestSuite("Variable");
        variable.addTest(new PackageTest("variableTest1"));
        allsuites.addTest(variable);
View Full Code Here

    static void
  testClass( Class theClass )
  {
    System.out.println( "*** testing " + theClass.getName() + " ***");
    // use 'ActiveTestSuite' to thread the tests
    final ActiveTestSuite  suite  = new ActiveTestSuite( theClass );
    junit.textui.TestRunner.run( suite );
  }
View Full Code Here

    static void
  testClass( Class theClass )
  {
    System.out.println( "*** testing " + theClass.getName() + " ***");
    // use 'ActiveTestSuite' to thread the tests
    final TestSuite  suite  = new ActiveTestSuite( theClass );
    junit.textui.TestRunner.run( suite );
  }
View Full Code Here

    static void
  testClass( Class theClass )
  {
    System.out.println( "*** testing " + theClass.getName() + " ***");
    // use 'ActiveTestSuite' to thread the tests
    final ActiveTestSuite  suite  = new ActiveTestSuite( theClass );
    junit.textui.TestRunner.run( suite );
  }
View Full Code Here

 
 
    public int
  testClassThreaded( final Class<junit.framework.TestCase> theClass )
  {
    final TestSuite  suite  = new ActiveTestSuite( theClass );
   
    return( runSuite( theClass.getName(), suite ) );
  }
View Full Code Here

TOP

Related Classes of junit.extensions.ActiveTestSuite

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.