public interface RenderingTests
*.test
files located in the classpath. These *.test
files must follow the
conventions described in TestDataParser
.
Usage Example
public class IntegrationTests implements RenderingTests
{
}
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:
@AllComponents
public class IntegrationTests implements RenderingTests
{
@RenderingTests.Initialized
public void initialize(MockitoComponentManager componentManager)
{
// Init mocks here for example
}
}
Modifier and Type | Interface and Description |
---|---|
static interface |
RenderingTests.Initialized
Annotation to use to indicate a method to execute before the test executes.
|
static interface |
RenderingTests.Scope
Annotation to use to indicate the resources directory containing the tests to execute.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATTERN
The default pattern matching the tests to execute.
|
Modifier and Type | Method and Description |
---|---|
default Stream<org.junit.jupiter.api.DynamicTest> |
renderingTests() |
static final String DEFAULT_PATTERN
@TestFactory default Stream<org.junit.jupiter.api.DynamicTest> renderingTests()
Copyright © 2004–2021 XWiki. All rights reserved.