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

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$

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 java.lang.String PATTERN
           
 
Constructor Summary
XWikiExecutorSuite(java.lang.Class<?> klass, org.junit.runners.model.RunnerBuilder builder)
           
 
Method Summary
protected  java.util.List<org.junit.runner.Runner> getChildren()
          
 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, collectInitializationErrors, filter, getDescription, getName, getTestClass, 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 java.lang.String PATTERN
Constructor Detail

XWikiExecutorSuite

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

getChildren

protected java.util.List<org.junit.runner.Runner> getChildren()

Overrides:
getChildren in class org.junit.runners.Suite

run

public void run(org.junit.runner.notification.RunNotifier notifier)

Overrides:
run in class org.junit.extensions.cpsuite.ClasspathSuite


Copyright © 2004-2011 XWiki. All Rights Reserved.