case classRuleViolationMatcher(value: Any = null, constraint: String = null, description: String = null) extends ViolationMatcher with Product with Serializable
A matcher over com.wix.accord.RuleViolations. 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 validationResult: Result = ...
validationResult must failWith( firstNameNotEmpty )
value
A predicate specifying the object under validation.
constraint
A predicate specifying the constraint being violated.
description
A predicate specifying the description of the object being validated.
See also
com.wix.accord.RuleViolation
Linear Supertypes
Serializable, Serializable, Product, Equals, ViolationMatcher, Matcher[Violation], AnyRef, Any
A matcher over com.wix.accord.RuleViolations. 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 validationResult: Result = ... validationResult must failWith( firstNameNotEmpty )
A predicate specifying the object under validation.
A predicate specifying the constraint being violated.
A predicate specifying the description of the object being validated.
com.wix.accord.RuleViolation