junit.extensions

Class ActiveTestSuite

Implemented Interfaces:
Test

public class ActiveTestSuite
extends TestSuite

A TestSuite for active Tests. It runs each test in a separate thread and waits until all threads have terminated. -- Aarhus Radisson Scandinavian Center 11th floor

Constructor Summary

ActiveTestSuite()
ActiveTestSuite(Class theClass)
ActiveTestSuite(Class theClass, String name)
ActiveTestSuite(String name)

Method Summary

void
run(TestResult result)
Runs a test and collects its result in a TestResult instance.
void
runFinished(Test test)
void
runTest(Test test, TestResult result)

Methods inherited from class junit.framework.TestSuite

addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString

Constructor Details

ActiveTestSuite

public ActiveTestSuite()

ActiveTestSuite

public ActiveTestSuite(Class theClass)

ActiveTestSuite

public ActiveTestSuite(Class theClass,
                       String name)

ActiveTestSuite

public ActiveTestSuite(String name)

Method Details

run

public void run(TestResult result)
Runs a test and collects its result in a TestResult instance.
Specified by:
run in interface Test
Overrides:
run in interface TestSuite

runFinished

public void runFinished(Test test)

runTest

public void runTest(Test test,
                    TestResult result)
Overrides:
runTest in interface TestSuite