Package org.xwiki.test.integration
Class XWikiExecutorSuite
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runner.Runner>
-
- org.junit.runners.Suite
-
- org.junit.extensions.cpsuite.ClasspathSuite
-
- org.xwiki.test.integration.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
-
-
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.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
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
-
getExecutors
public List<XWikiExecutor> getExecutors()
-
getChildren
protected List<org.junit.runner.Runner> getChildren()
- Overrides:
getChildren
in classorg.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 classorg.junit.extensions.cpsuite.ClasspathSuite
-
-