protected class ParameterizedJUnitParamsRunner.ParameterizedTestCreator
extends org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
BlockJUnit4ClassRunnerWithParameters
can't be used directly because
it wouldn't even be constructed successfully: it tries to validate the
test class and fails if there are any test methods with parameters.
In order to avoid this, this class overrides
collectInitializationErrors
and delegates it to the outer instance (ParameterizedJUnitParamsRunner
),
which knows how to validate JUnitParams tests properly.
Constructor and Description |
---|
ParameterizedTestCreator(org.junit.runners.parameterized.TestWithParameters test)
Creates new test creator for the given test.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectInitializationErrors(List<Throwable> errors)
Delegates validation to the outer instance.
|
classBlock, createTest, getName, getRunnerAnnotations, testName, validateConstructor, validateFields
computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public ParameterizedTestCreator(org.junit.runners.parameterized.TestWithParameters test) throws org.junit.runners.model.InitializationError
test
- test with parametersorg.junit.runners.model.InitializationError
- whenever is thrown by a base classCopyright © 2016. All rights reserved.