public class ParameterizedJUnitParamsRunner
extends junitparams.JUnitParamsRunner
It is typically not needed to create objects of this class directly.
Use ParameterizedJUnitParamsRunnerFactory
to do that.
You probably only need to use this class if you want to extend it
and create your own factory, returning your customized runners.
Modifier and Type | Class and Description |
---|---|
protected class |
ParameterizedJUnitParamsRunner.ParameterizedTestCreator
A temporary runner used only to create test instances.
|
Constructor and Description |
---|
ParameterizedJUnitParamsRunner(Class<?> klass,
org.junit.runners.parameterized.TestWithParameters test)
Constructs new JUnitParams runner compatible with Parameterized.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
createTest()
Creates a parameterized test instance.
|
protected String |
getName()
Delegates to the test provided to the constructor.
|
$, collectInitializationErrors, computeTestMethods, describeMethod, filter, getDescription, methodInvoker, runChild
describeChild, getChildren, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public ParameterizedJUnitParamsRunner(Class<?> klass, org.junit.runners.parameterized.TestWithParameters test) throws org.junit.runners.model.InitializationError
klass
- the class being testedtest
- the test encapsulated with parametersorg.junit.runners.model.InitializationError
- whenever is thrown by a base classprotected Object createTest() throws Exception
ParameterizedJUnitParamsRunner.ParameterizedTestCreator
to do the job.createTest
in class org.junit.runners.BlockJUnit4ClassRunner
Exception
- whatever is thrown by the creatorprotected String getName()
TestWithParameters
instance,
to the factory, which passes it here.getName
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
Copyright © 2016. All rights reserved.