public abstract class ParametricTestSuite extends MultiTestSuite
Constructor and Description |
---|
ParametricTestSuite()
Creates a new instance of ParametricTestSuite
|
ParametricTestSuite(String name)
Constructs a ParametricTestSuite with the given name.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ParametricTestCase[] |
cases(Object parameter)
Returns an array of testcases for the given parameter.
|
protected abstract Object[] |
getParameters()
Returns an array of parameters for this suite.
|
protected MultiTestCase |
nextTestCase()
Factory method returns a new instance of a testcases.
|
protected void |
runAllTests(junit.framework.TestResult result)
Creates all testcases and runs them.
|
cleanup, prepare, run
addTest, addTestSuite, canRun, getExpectedFail, linearSpeedSuite, setFilter, speedSuite
countTestCases, createTest, getName, getTestConstructor, runTest, setName, testAt, testCount, tests, toString, warning
public ParametricTestSuite()
public ParametricTestSuite(String name)
name
- name of the suiteprotected abstract ParametricTestCase[] cases(Object parameter)
parameter
- parametre to retrieve the test case fromeprotected abstract Object[] getParameters()
protected final MultiTestCase nextTestCase()
nextTestCase
in class MultiTestSuite
protected void runAllTests(junit.framework.TestResult result)
runAllTests
in class MultiTestSuite
result
- collector for result