Class 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
    • 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
      • 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