org.xwiki.test.integration
Class XWikiExecutorSuite

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by org.junit.runners.Suite
              extended by org.junit.extensions.cpsuite.ClasspathSuite
                  extended by org.xwiki.test.integration.XWikiExecutorSuite
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
Direct Known Subclasses:
PageObjectSuite

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.

Since:
3.0RC1
Version:
$Id: 2bbf9433ccf11b4dc4d166b6b572cba7b0f4ecfb $

Nested Class Summary
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
static String PATTERN
           
 
Constructor Summary
XWikiExecutorSuite(Class<?> klass, org.junit.runners.model.RunnerBuilder builder)
           
 
Method Summary
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, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN

public static final String PATTERN
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 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


Copyright © 2004-2013 XWiki. All Rights Reserved.