A predicate specifying the object under validation.
A predicate specifying the constraint being violated.
A predicate specifying the description of the object being validated.
The set of violations that comprise the group being validated.
A predicate specifying the constraint being violated.
A predicate specifying the description of the object being validated.
A predicate specifying the object under validation.
The set of violations that comprise the group being validated.
A matcher over com.wix.accord.GroupViolations. To generate a violation rule "pattern", call the constructor with the required predicates, for example:
val firstNameNotEmpty = RuleViolationMatcher( description = "firstName", constraint = "must not be empty" ) val lastNameNotEmpty = RuleViolationMatcher( description = "lastName", constraint = "must not be empty" ) val orPredicateFailed = GroupViolationMatcher( constraint = "doesn't meet any of the requirements", violations = firstNameNotEmpty :: lastNameNotEmpty :: Nil ) val validationResult: Result = ... validationResult must failWith( orPredicateFailed )
A predicate specifying the object under validation.
A predicate specifying the constraint being violated.
A predicate specifying the description of the object being validated.
The set of violations that comprise the group being validated.
com.wix.accord.GroupViolation