Class RenderingTestSuite
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runner.Runner>
-
- org.junit.runners.Suite
-
- org.xwiki.rendering.test.integration.RenderingTestSuite
-
- All Implemented Interfaces:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,org.junit.runner.manipulation.Orderable
,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 inTestDataParser
.Usage Example
@RunWith(RenderingTestSuite.class) public class IntegrationTests { }
It's also possible to get access to the underlying Component Manager used, for example in order to register Mock implementations of components. For example:
@RunWith(RenderingTestSuite.class) @AllComponents public class IntegrationTests { @RenderingTestSuite.Initialized public void initialize(MockitoComponentManager componentManager) { // Init mocks here for example } }
- Since:
- 3.0RC1
- Version:
- $Id: 206e9b41448f552920e2d95e86f91feef90319f0 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RenderingTestSuite.Initialized
static interface
RenderingTestSuite.Scope
-
Constructor Summary
Constructors Constructor Description RenderingTestSuite(Class<?> klass)
Only called reflectively.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
Method Detail
-
getChildren
protected List<org.junit.runner.Runner> getChildren()
- Overrides:
getChildren
in classorg.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 interfaceorg.junit.runner.Describable
- Overrides:
getDescription
in classorg.junit.runners.ParentRunner<org.junit.runner.Runner>
-
-