|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.clarkware.junitperf.ThreadedTest
public class ThreadedTest
The 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,
java.lang.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. |
java.lang.String |
toString()
Returns the test description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int countTestCases()
public void run(TestResult result)
result - Test result.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||