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