Package junit.extensions
Class ActiveTestSuite
- java.lang.Object
-
- junit.framework.TestSuite
-
- junit.extensions.ActiveTestSuite
-
- All 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
Constructors Constructor Description ActiveTestSuite()
ActiveTestSuite(java.lang.Class<? extends TestCase> theClass)
ActiveTestSuite(java.lang.Class<? extends TestCase> theClass, java.lang.String name)
ActiveTestSuite(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(TestResult result)
Runs the tests and collects their result in a TestResult.void
runFinished()
void
runTest(Test test, TestResult result)
-
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, setName, testAt, testCount, tests, toString, warning
-
-
-
-
Constructor Detail
-
ActiveTestSuite
public ActiveTestSuite()
-
ActiveTestSuite
public ActiveTestSuite(java.lang.Class<? extends TestCase> theClass)
-
ActiveTestSuite
public ActiveTestSuite(java.lang.String name)
-
ActiveTestSuite
public ActiveTestSuite(java.lang.Class<? extends TestCase> theClass, java.lang.String name)
-
-
Method Detail
-
run
public void run(TestResult result)
Description copied from class:TestSuite
Runs the tests and collects their result in a TestResult.
-
runTest
public void runTest(Test test, TestResult result)
-
runFinished
public void runFinished()
-
-