com.clarkware.junitperf
public class ThreadedTest extends Object implements Test
ThreadedTest is a test decorator that
runs a test in a separate thread.
| Constructor Summary | |
|---|---|
| ThreadedTest(Test test)
Constructs a ThreadedTest to decorate the
specified test using the same thread group as the
current thread.
| |
| ThreadedTest(Test test, ThreadGroup group, ThreadBarrier barrier)
Constructs a ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier.
| |
| Method Summary | |
|---|---|
| int | countTestCases()
Returns the number of test cases in this threaded test.
|
| void | run(TestResult result)
Runs this test.
|
| String | toString()
Returns the test description.
|
ThreadedTest to decorate the
specified test using the same thread group as the
current thread.
Parameters: test Test to decorate.
ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier.
Parameters: test Test to decorate. group Thread group. barrier Thread barrier.
Returns: Number of test cases.
Parameters: result Test result.
Returns: Description.