Interface RenderingTests
-
public interface RenderingTests
Run all tests found in*.test
files located in the classpath. These*.test
files must follow the conventions described inTestDataParser
.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 } }
- Since:
- 13.0
- Version:
- $Id: d70dc4ceae6e655368520b8b1823427e35e93efe $
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PATTERN
The default pattern matching the tests to execute.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Stream<org.junit.jupiter.api.DynamicTest>
renderingTests()
-
-
-
Field Detail
-
DEFAULT_PATTERN
static final String DEFAULT_PATTERN
The default pattern matching the tests to execute.- See Also:
- Constant Field Values
-
-
Method Detail
-
renderingTests
@TestFactory default Stream<org.junit.jupiter.api.DynamicTest> renderingTests()
- Returns:
- the dynamic list of tests to execute
-
-