|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestSuite
com.diasparsoftware.util.junit.ParameterizedTestSuite
Create a parameterized test suite from a collection of fixture objects. Each fixture object is an instance of the test case for which you wish to provide external fixture data. Use "fixturable" test case classes: a test case class with an additional constructor capable of accepting as parameters all the fixture data the test needs. To use a parameterized test suite, follow these instructions.
setFixture()
.getName()
to include the name
of your fixture.
Constructor Summary | |
ParameterizedTestSuite(java.util.Collection fixtures)
Creates a test suite of fixtured test cases from the specified fixtures. |
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ParameterizedTestSuite(java.util.Collection fixtures)
TestCase
.
A test case class is fixturable if it defines the method setFixture()
taking as a parameter an instance of itself.
fixtures
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |