public class TestMethodFactory extends TestFactory
TestMethodFactory class is a TestFactory
that creates thread-local TestSuite instances containing
a specific test method of a TestCase.
A typical usage scenario is as follows:
Test factory = new TestMethodFactory(YourTestCase.class, "testSomething"); LoadTest test = new LoadTest(factory, numberOfUsers, ...); ...
TestFactory,
LoadTesttestClass| Constructor and Description |
|---|
TestMethodFactory(java.lang.Class testClass,
java.lang.String testMethodName)
Constructs a
TestMethodFactory instance. |
| Modifier and Type | Method and Description |
|---|---|
protected TestSuite |
makeTestSuite() |
countTestCases, getTest, getTestSuite, run, toStringpublic TestMethodFactory(java.lang.Class testClass,
java.lang.String testMethodName)
TestMethodFactory instance.testClass - The TestCase class to load test.testMethodName - The name of the test method to load test.protected TestSuite makeTestSuite()
makeTestSuite in class TestFactoryCopyright ? 1999-2005 Clarkware Consulting, Inc.