Package com.clarkware.junitperf
Class TestMethodFactory
- java.lang.Object
-
- com.clarkware.junitperf.TestFactory
-
- com.clarkware.junitperf.TestMethodFactory
-
- All Implemented Interfaces:
junit.framework.Test
public class TestMethodFactory extends TestFactory
TheTestMethodFactory
class is aTestFactory
that creates thread-localTestSuite
instances containing a specific test method of aTestCase
.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:
TestFactory
,LoadTest
-
-
Field Summary
-
Fields inherited from class com.clarkware.junitperf.TestFactory
testClass
-
-
Constructor Summary
Constructors Constructor Description TestMethodFactory(java.lang.Class testClass, java.lang.String testMethodName)
Constructs aTestMethodFactory
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected junit.framework.TestSuite
makeTestSuite()
-
Methods inherited from class com.clarkware.junitperf.TestFactory
countTestCases, getTest, getTestSuite, run, toString
-
-
-
-
Method Detail
-
makeTestSuite
protected junit.framework.TestSuite makeTestSuite()
- Overrides:
makeTestSuite
in classTestFactory
-
-