public class DataProviderRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Object[][] (see DataProvider).
Your test method must be annotated with @UseDataProvider, additionally.
| Constructor and Description |
|---|
DataProviderRunner(java.lang.Class<?> clazz)
Creates a DataProviderRunner to run supplied
clazz. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectInitializationErrors(java.util.List<java.lang.Throwable> errors) |
protected java.util.List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
void |
filter(org.junit.runner.manipulation.Filter filter) |
protected void |
validateTestMethods(java.util.List<java.lang.Throwable> errors) |
createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic DataProviderRunner(java.lang.Class<?> clazz)
throws org.junit.runners.model.InitializationError
clazz.clazz - the test Class to runorg.junit.runners.model.InitializationError - if the test Class is malformed.public void filter(org.junit.runner.manipulation.Filter filter)
throws org.junit.runner.manipulation.NoTestsRemainException
filter in interface org.junit.runner.manipulation.Filterablefilter in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>org.junit.runner.manipulation.NoTestsRemainExceptionprotected java.util.List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerprotected void collectInitializationErrors(java.util.List<java.lang.Throwable> errors)
collectInitializationErrors in class org.junit.runners.BlockJUnit4ClassRunnerprotected void validateTestMethods(java.util.List<java.lang.Throwable> errors)
validateTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerjava.lang.IllegalArgumentException - if given errors is null