public class ThreadedTest
extends java.lang.Object
ThreadedTest is a test decorator that
runs a test in a separate thread.| Constructor and Description |
|---|
ThreadedTest(Test test)
Constructs a
ThreadedTest to decorate the
specified test using the same thread group as the
current thread. |
ThreadedTest(Test test,
java.lang.ThreadGroup group,
ThreadBarrier barrier)
Constructs a
ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier. |
| Modifier and Type | Method and Description |
|---|---|
int |
countTestCases()
Returns the number of test cases in this threaded test.
|
void |
run(TestResult result)
Runs this test.
|
java.lang.String |
toString()
Returns the test description.
|
public ThreadedTest(Test test)
ThreadedTest to decorate the
specified test using the same thread group as the
current thread.test - Test to decorate.public ThreadedTest(Test test,
java.lang.ThreadGroup group,
ThreadBarrier barrier)
ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier.test - Test to decorate.group - Thread group.barrier - Thread barrier.public int countTestCases()
public void run(TestResult result)
result - Test result.public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 1999-2005 Clarkware Consulting, Inc.