com.clarkware.junitperf
Class ThreadedTest
java.lang.Object
com.clarkware.junitperf.ThreadedTest
- Test
public class ThreadedTest
extends java.lang.Object
implements Test
The ThreadedTest
is a test decorator that
runs a test in a separate thread.
- Mike Clark
- Clarkware Consulting, Inc.
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.
|
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
public ThreadedTest(Test test)
Constructs a ThreadedTest
to decorate the
specified test using the same thread group as the
current thread.
ThreadedTest
public ThreadedTest(Test test,
ThreadGroup group,
ThreadBarrier barrier)
Constructs a ThreadedTest
to decorate the
specified test using the specified thread group and
thread barrier.
test
- Test to decorate.group
- Thread group.barrier
- Thread barrier.
countTestCases
public int countTestCases()
Returns the number of test cases in this threaded test.
run
public void run(TestResult result)
Runs this test.
toString
public String toString()
Returns the test description.
Copyright B) 1999-2005 Clarkware Consulting, Inc.