com.clarkware.junitperf

Class TestMethodFactory

Implemented Interfaces:
Test

public class TestMethodFactory
extends TestFactory

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, ...);
 ...
 
Authors:
Mike Clark
Clarkware Consulting, Inc.
See Also:
TestFactory, LoadTest

Field Summary

Fields inherited from class com.clarkware.junitperf.TestFactory

testClass

Constructor Summary

TestMethodFactory(Class testClass, String testMethodName)
Constructs a TestMethodFactory instance.

Method Summary

protected TestSuite
makeTestSuite()

Methods inherited from class com.clarkware.junitperf.TestFactory

countTestCases, getTest, getTestSuite, makeTestSuite, run, toString

Constructor Details

TestMethodFactory

public TestMethodFactory(Class testClass,
                         String testMethodName)
Constructs a TestMethodFactory instance.
Parameters:
testClass - The TestCase class to load test.
testMethodName - The name of the test method to load test.

Method Details

makeTestSuite

protected TestSuite makeTestSuite()
Overrides:
makeTestSuite in interface TestFactory

Copyright B) 1999-2005 Clarkware Consulting, Inc.