DomainModelValidator

API

DomainModelValidator.java
class DomainModelValidator {
  DomainModelValidator(ServiceRegistry registry)
  DomainModelValidator(SpecificationLoader specificationLoader, CausewayConfiguration configuration, CausewaySystemEnvironment causewaySystemEnvironment)
  void assertValid()     (1)
  void throwIfInvalid()     (2)
  Set<ValidationFailure> getFailures()
  Stream<ValidationFailure> streamFailures(Predicate<Identifier> filter)
  Stream<ValidationFailure> streamFailuresMatchingOriginatingIdentifier(Identifier identifier)
  void assertAnyFailuresContaining(Identifier identifier, String messageSnippet)     (3)
  void assertAnyFailuresContaining(Class<?> domainType, String messageSnippet)     (4)
  void assertAnyOfContainingAnyFailures(Can<Identifier> classIdentifiers, String messageSnippet)     (5)
}
1 assertValid()

Typical usage in integration tests.

2 throwIfInvalid()

Alternative way of checking

3 assertAnyFailuresContaining(Identifier, String)

JUnit support

4 assertAnyFailuresContaining(Class, String)

JUnit support

5 assertAnyOfContainingAnyFailures(Can, String)

JUnit support

Members

assertValid()

Typical usage in integration tests.

throwIfInvalid()

Alternative way of checking

assertAnyFailuresContaining(Identifier, String)

JUnit support

assertAnyFailuresContaining(Class, String)

JUnit support

assertAnyOfContainingAnyFailures(Can, String)

JUnit support