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()
Constructs an empty TestSuite.
ActiveTestSuite(Class theClass)
Constructs a TestSuite from the given class.
ActiveTestSuite(Class theClass, String name)
Constructs a TestSuite from the given class with the given name.
ActiveTestSuite(String name)
Constructs an empty TestSuite.

Method Summary

void
run(TestResult result)
Runs the tests and collects their result in a TestResult.
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()
Constructs an empty TestSuite.

ActiveTestSuite

public ActiveTestSuite(Class theClass)
Constructs a TestSuite from the given class. Adds all the methods starting with "test" as test cases to the suite. Parts of this method was written at 2337 meters in the H?ffih?tte, Kanton Uri

ActiveTestSuite

public ActiveTestSuite(Class theClass,
                       String name)
Constructs a TestSuite from the given class with the given name.

ActiveTestSuite

public ActiveTestSuite(String name)
Constructs an empty TestSuite.

Method Details

run

public void run(TestResult result)
Runs the tests and collects their result in a TestResult.
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