A matcher over com.wix.accord.GroupViolations.
A matcher over validation com.wix.accord.Results.
A matcher over com.wix.accord.RuleViolations.
Abstracts over validators for the various violation type.
Enables syntax like someResult should fail
A convenience method for matching failures.
A convenience method for matching failures. Enables syntax like:
val result: Result = ...
result should failWith( "firstName" -> "must not be empty", "lastName" -> "must not be empty" )
The set of expected violations.
A matcher over validation com.wix.accord.Results.
A convenience method for matching violation groups.
A convenience method for matching violation groups. Enables syntax like:
val result: Result = ...
result should failWith( group( "teacher", "is invalid", // The group context
"firstName -> "must not be empty" ) ) // The rule violations
The textual description of the object under validation.
A textual description of the constraint being violated (for example, "must not be empty").
The set of expected violations that comprise the group.
A matcher over com.wix.accord.GroupViolations.
A convenience implicit to simplify test code.
A convenience implicit to simplify test code. Enables syntax like:
val rule: RuleViolationMatcher = "firstName" -> "must not be empty"
// ... which is equivalent to
val rule = RuleViolationMatcher( description = "firstName", constraint = "must not be empty" )
Enables syntax like someResult should succeed
Extends a specification with a set of matchers over validation com.wix.accord.Results.