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
,
LoadTest
testClass
Constructor and Description |
---|
TestMethodFactory(java.lang.Class testClass,
java.lang.String testMethodName)
Constructs a
TestMethodFactory instance. |
Modifier and Type | Method and Description |
---|---|
protected junit.framework.TestSuite |
makeTestSuite() |
countTestCases, getTest, getTestSuite, run, toString
public 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 junit.framework.TestSuite makeTestSuite()
makeTestSuite
in class TestFactory
Copyright ? 1999-2005 Clarkware Consulting, Inc.