Package com.clarkware.junitperf
Class TestMethodFactory
java.lang.Object
com.clarkware.junitperf.TestFactory
com.clarkware.junitperf.TestMethodFactory
- All Implemented Interfaces:
junit.framework.Test
The
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, ...); ...
- Author:
- Mike Clark, Clarkware Consulting, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.clarkware.junitperf.TestFactory
testClass -
Constructor Summary
ConstructorsConstructorDescriptionTestMethodFactory(Class testClass, String testMethodName) Constructs aTestMethodFactoryinstance. -
Method Summary
Methods inherited from class com.clarkware.junitperf.TestFactory
countTestCases, getTest, getTestSuite, run, toString
-
Constructor Details
-
TestMethodFactory
Constructs aTestMethodFactoryinstance.- Parameters:
testClass- TheTestCaseclass to load test.testMethodName- The name of the test method to load test.
-
-
Method Details
-
makeTestSuite
protected junit.framework.TestSuite makeTestSuite()- Overrides:
makeTestSuitein classTestFactory
-