public class J8Parameterized extends Parameterized
Extension of Parameterized to support the extended test class model.
To invoke this custom Runner just use @RunWith
annotation; and (!) specify
the custom runner factory
in addition:
@RunWith(J8Parameterized.class)
@UseParametersRunnerFactory(J8BlockJUnit4ClassRunnerWithParametersFactory.class)
public class FoobarTest {
[…]
}
RunWith,
Parameterized.UseParametersRunnerFactory,
J8BlockJUnit4ClassRunnerWithParametersFactory,
J8TestClassParameterized.Parameter, Parameterized.Parameters, Parameterized.UseParametersRunnerFactorySuite.SuiteClasses| Constructor and Description |
|---|
J8Parameterized(Class<?> clazz)
Creates a
J8Parameterized instance to run the tests of the given Class. |
| Modifier and Type | Method and Description |
|---|---|
protected J8TestClass |
createTestClass(Class<?> testClass)
Returns an extended test class model of the given
Class. |
getChildrendescribeChild, emptySuite, runChildchildrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic J8Parameterized(Class<?> clazz) throws Throwable
Creates a J8Parameterized instance to run the tests of the given Class.
clazz - the parameterised test classThrowable - if the parameterised test class is malformedprotected J8TestClass createTestClass(Class<?> testClass)
Returns an extended test class model of the given Class.
createTestClass in class ParentRunner<Runner>testClass - the test classClassCopyright © 2015. All rights reserved.