| java.lang.Object com.clarkware.junitperf.ThreadedTest
ThreadedTest | public class ThreadedTest implements Test(Code) | | The ThreadedTest is a test decorator that
runs a test in a separate thread.
author: Mike Clark author: Clarkware Consulting, Inc. |
Inner Class :class TestRunner implements Runnable | |
Constructor Summary | |
public | ThreadedTest(Test test) Constructs a ThreadedTest to decorate the
specified test using the same thread group as the
current thread. | public | ThreadedTest(Test test, ThreadGroup group, ThreadBarrier barrier) Constructs a ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier. |
ThreadedTest | public ThreadedTest(Test test)(Code) | | Constructs a ThreadedTest to decorate the
specified test using the same thread group as the
current thread.
Parameters: test - Test to decorate. |
ThreadedTest | public ThreadedTest(Test test, ThreadGroup group, ThreadBarrier barrier)(Code) | | Constructs a ThreadedTest to decorate the
specified test using the specified thread group and
thread barrier.
Parameters: test - Test to decorate. Parameters: group - Thread group. Parameters: barrier - Thread barrier. |
countTestCases | public int countTestCases()(Code) | | Returns the number of test cases in this threaded test.
Number of test cases. |
run | public void run(TestResult result)(Code) | | Runs this test.
Parameters: result - Test result. |
toString | public String toString()(Code) | | Returns the test description.
Description. |
|
|