Package org.nuxeo.runtime.test.runner
Class ParameterizedSuite
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<FeaturesRunner>
org.nuxeo.runtime.test.runner.ParameterizedSuite
- All Implemented Interfaces:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,org.junit.runner.manipulation.Orderable
,org.junit.runner.manipulation.Sortable
JUnit4 ParentRunner that knows how to run a test class on multiple backend types.
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
TheParameterizedFeature
annotation specifies the class to be parameterized.static @interface
-
Constructor Summary
ConstructorDescriptionParameterizedSuite
(Class<?> testClass, org.junit.runners.model.RunnerBuilder builder) ParameterizedSuite
(org.junit.runners.model.RunnerBuilder builder, Class<?> testClass, Class<?>[] classes) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.junit.runner.Description
describeChild
(FeaturesRunner child) protected List<FeaturesRunner>
protected static Class<?>[]
getSuiteClasses
(Class<?> klass) protected void
runChild
(FeaturesRunner child, org.junit.runner.notification.RunNotifier notifier) Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
Methods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
ParameterizedSuite
public ParameterizedSuite(Class<?> testClass, org.junit.runners.model.RunnerBuilder builder) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
ParameterizedSuite
public ParameterizedSuite(org.junit.runners.model.RunnerBuilder builder, Class<?> testClass, Class<?>[] classes) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
getSuiteClasses
protected static Class<?>[] getSuiteClasses(Class<?> klass) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
describeChild
- Specified by:
describeChild
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-
getChildren
- Specified by:
getChildren
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-
runChild
- Specified by:
runChild
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-