Class XWikiExecutorSuite

  • All Implemented Interfaces:
    org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

    public class XWikiExecutorSuite
    extends org.junit.extensions.cpsuite.ClasspathSuite
    Starts/Stop XWiki before/after all tests and run all tests found in the current classloader using cpsuite (we extend it). Tests can be filtered by passing the "pattern" System Property.

    More details on the "pattern" System Property, its syntax and examples are found in the XWikiExecutorTestMethodFilter class.

    Since:
    3.0RC1
    Version:
    $Id: b4b836cea956465e227319b3327ac3e2053125f7 $
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  XWikiExecutorSuite.Executors  
      static interface  XWikiExecutorSuite.PostStart  
      static interface  XWikiExecutorSuite.PreStart  
      • Nested classes/interfaces inherited from class org.junit.extensions.cpsuite.ClasspathSuite

        org.junit.extensions.cpsuite.ClasspathSuite.BaseTypeFilter, org.junit.extensions.cpsuite.ClasspathSuite.BeforeSuite, org.junit.extensions.cpsuite.ClasspathSuite.ClassnameFilters, org.junit.extensions.cpsuite.ClasspathSuite.ClasspathProperty, org.junit.extensions.cpsuite.ClasspathSuite.ExcludeBaseTypeFilter, org.junit.extensions.cpsuite.ClasspathSuite.IncludeJars, org.junit.extensions.cpsuite.ClasspathSuite.SuiteTypes
      • Nested classes/interfaces inherited from class org.junit.runners.Suite

        org.junit.runners.Suite.SuiteClasses
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger LOGGER  
      static String PATTERN  
    • Constructor Summary

      Constructors 
      Constructor Description
      XWikiExecutorSuite​(Class<?> klass, org.junit.runners.model.RunnerBuilder builder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void afterTests()
      Called after test execution.
      protected void beforeTests()
      Called before test execution.
      protected List<org.junit.runner.Runner> getChildren()  
      List<XWikiExecutor> getExecutors()  
      void run​(org.junit.runner.notification.RunNotifier notifier)  
      • Methods inherited from class org.junit.runners.Suite

        describeChild, emptySuite, runChild
      • Methods inherited from class org.junit.runners.ParentRunner

        childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
      • Methods inherited from class org.junit.runner.Runner

        testCount
    • Field Detail

      • PATTERN

        public static final String PATTERN
      • LOGGER

        protected static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • XWikiExecutorSuite

        public XWikiExecutorSuite​(Class<?> klass,
                                  org.junit.runners.model.RunnerBuilder builder)
                           throws org.junit.runners.model.InitializationError
        Throws:
        org.junit.runners.model.InitializationError
    • Method Detail

      • getChildren

        protected List<org.junit.runner.Runner> getChildren()
        Overrides:
        getChildren in class org.junit.runners.Suite
      • beforeTests

        protected void beforeTests()
        Called before test execution.
      • afterTests

        protected void afterTests()
        Called after test execution.
      • run

        public void run​(org.junit.runner.notification.RunNotifier notifier)
        Overrides:
        run in class org.junit.extensions.cpsuite.ClasspathSuite