org.xwiki.rendering.test.integration
Class RenderingTestSuite

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.xwiki.rendering.test.integration.RenderingTestSuite
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class RenderingTestSuite
extends org.junit.runners.Suite

Run all tests found in *.test files located in the classpath. These *.test files must follow the conventions described in TestDataParser.

Usage Example

Since:
3.0RC1
Version:
$Id: 8ca2202d9f77263a2f63a5fc53ee3942a24b6702 $

Nested Class Summary
static interface RenderingTestSuite.Initialized
           
static interface RenderingTestSuite.Scope
           
 
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
 
Constructor Summary
RenderingTestSuite(Class<?> klass)
          Only called reflectively.
 
Method Summary
protected  List<org.junit.runner.Runner> getChildren()
           
 org.junit.runner.Description getDescription()
           We override this method so that the JUnit results are not displayed in a test hierarchy with a single test result for each node (as it would be otherwise since RenderingTest has a single test method).
 
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, runChild
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getName, getRunnerAnnotations, getTestClass, run, 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
 

Constructor Detail

RenderingTestSuite

public RenderingTestSuite(Class<?> klass)
                   throws Throwable
Only called reflectively. Do not use programmatically.

Throws:
Throwable
Method Detail

getChildren

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

getDescription

public org.junit.runner.Description getDescription()
We override this method so that the JUnit results are not displayed in a test hierarchy with a single test result for each node (as it would be otherwise since RenderingTest has a single test method).

Specified by:
getDescription in interface org.junit.runner.Describable
Overrides:
getDescription in class org.junit.runners.ParentRunner<org.junit.runner.Runner>


Copyright © 2004-2013 XWiki. All Rights Reserved.