junit.framework.Testpublic 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 | Description |
|---|---|
TestMethodFactory(java.lang.Class testClass,
java.lang.String testMethodName) |
Constructs a
TestMethodFactory instance. |
| Modifier and Type | Method | Description |
|---|---|---|
protected junit.framework.TestSuite |
makeTestSuite() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountTestCases, 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 junit.framework.TestSuite makeTestSuite()
makeTestSuite in class TestFactoryCopyright ? 1999-2005 Clarkware Consulting, Inc.