junit.framework.Testpublic class ThreadedTest
extends java.lang.Object
implements junit.framework.Test
ThreadedTest is a test decorator that
runs a test in a separate thread.| Constructor | Description |
|---|---|
ThreadedTest(junit.framework.Test test) |
Constructs a
ThreadedTest to decorate the
specified test using the same thread group as the
current thread. |
ThreadedTest(junit.framework.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 | Description |
|---|---|---|
int |
countTestCases() |
Returns the number of test cases in this threaded test.
|
void |
run(junit.framework.TestResult result) |
Runs this test.
|
java.lang.String |
toString() |
Returns the test description.
|
public ThreadedTest(junit.framework.Test test)
ThreadedTest to decorate the
specified test using the same thread group as the
current thread.test - Test to decorate.public ThreadedTest(junit.framework.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()
countTestCases in interface junit.framework.Testpublic void run(junit.framework.TestResult result)
run in interface junit.framework.Testresult - Test result.public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 1999-2005 Clarkware Consulting, Inc.