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
    • 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 class org.junit.runners.ParentRunner<FeaturesRunner>
      • runChild

        protected void runChild​(FeaturesRunner child,
                                org.junit.runner.notification.RunNotifier notifier)
        Specified by:
        runChild in class org.junit.runners.ParentRunner<FeaturesRunner>