public class ParameterizedSuite extends org.junit.runners.ParentRunner<FeaturesRunner>
To use it :
@RunWith(ParameterizedSuite.class)
@SuiteClasses(SimpleSession.class)
@ParameterizedFeature(? extends RunnerFeature.class)
public class NuxeoSuiteTest {
@Parameters
public static Collection<Object[]> yourParametersMethod() {...}
}
@ParameterizedFeature is optional. If used, the corresponding class must implement a method annotated with
@ParameterizedMethod| Modifier and Type | Class and Description |
|---|---|
static interface |
ParameterizedSuite.ParameterizedFeature
The
ParameterizedFeature annotation specifies the class to be parameterized. |
static interface |
ParameterizedSuite.ParameterizedMethod |
| Constructor and Description |
|---|
ParameterizedSuite(Class<?> testClass,
org.junit.runners.model.RunnerBuilder builder) |
ParameterizedSuite(org.junit.runners.model.RunnerBuilder builder,
Class<?> testClass,
Class<?>[] classes) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runner.Description |
describeChild(FeaturesRunner child) |
protected List<FeaturesRunner> |
getChildren() |
protected static Class<?>[] |
getSuiteClasses(Class<?> klass) |
protected void |
runChild(FeaturesRunner child,
org.junit.runner.notification.RunNotifier notifier) |
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic ParameterizedSuite(Class<?> testClass, org.junit.runners.model.RunnerBuilder builder) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorpublic ParameterizedSuite(org.junit.runners.model.RunnerBuilder builder, Class<?> testClass, Class<?>[] classes) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected static Class<?>[] getSuiteClasses(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected org.junit.runner.Description describeChild(FeaturesRunner child)
describeChild in class org.junit.runners.ParentRunner<FeaturesRunner>protected List<FeaturesRunner> getChildren()
getChildren in class org.junit.runners.ParentRunner<FeaturesRunner>protected void runChild(FeaturesRunner child, org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.ParentRunner<FeaturesRunner>Copyright © 2015 Nuxeo SA. All rights reserved.