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
public class ParameterizedSuite extends org.junit.runners.ParentRunner<FeaturesRunner>
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
Nested Classes Modifier and Type Class Description static interface
ParameterizedSuite.ParameterizedFeature
TheParameterizedFeature
annotation specifies the class to be parameterized.static interface
ParameterizedSuite.ParameterizedMethod
-
Constructor Summary
Constructors Constructor Description ParameterizedSuite(Class<?> testClass, org.junit.runners.model.RunnerBuilder builder)
ParameterizedSuite(org.junit.runners.model.RunnerBuilder builder, Class<?> testClass, Class<?>[] classes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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
-
-
-
-
Constructor Detail
-
ParameterizedSuite
public ParameterizedSuite(Class<?> testClass, org.junit.runners.model.RunnerBuilder builder) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Detail
-
getSuiteClasses
protected static Class<?>[] getSuiteClasses(Class<?> klass) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
describeChild
protected org.junit.runner.Description describeChild(FeaturesRunner child)
- Specified by:
describeChild
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-
getChildren
protected List<FeaturesRunner> getChildren()
- Specified by:
getChildren
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-
runChild
protected void runChild(FeaturesRunner child, org.junit.runner.notification.RunNotifier notifier)
- Specified by:
runChild
in classorg.junit.runners.ParentRunner<FeaturesRunner>
-
-