Junit5 validation components
- ../validation Checking model consistency
After importing the bom
:
<dependency>
<!-- model validation -->
<groupId>com.mastercard.test.flow</groupId>
<artifactId>validation-junit5</artifactId>
</dependency>
The Validator
implementation provided by this module can used in a dynamic test:
@TestFactory
Stream<DynamicNode> checks() {
return new Validator()
.checking( MY_SYSTEM_MODEL )
.with( AbstractValidator.defaultChecks() )
.tests();
}