public class RenderingTestSuite
extends org.junit.runners.Suite
*.test
files located in the classpath. These *.test
files must follow the
conventions described in TestDataParser
.
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
}
}
Modifier and Type | Class and Description |
---|---|
static interface |
RenderingTestSuite.Initialized |
static interface |
RenderingTestSuite.Scope |
Constructor and Description |
---|
RenderingTestSuite(Class<?> klass)
Only called reflectively.
|
Modifier and Type | Method and 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).
|
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getName, getRunnerAnnotations, getTestClass, isIgnored, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
protected List<org.junit.runner.Runner> getChildren()
getChildren
in class org.junit.runners.Suite
public org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
Copyright © 2004–2019 XWiki. All rights reserved.