T
- a domain rejection typepublic interface RejectionCriterion<T extends io.spine.base.RejectionMessage>
Optionally can contain an the criterion description, useful for display by test assertions.
These criteria are consumed by acks verifier
ackedWithError method
.
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
description()
Obtains a message specifying the reason the rejection did not match the predicate.
|
boolean |
matches(T target)
Checks if target matches the criterion.
|
default java.lang.String description()
boolean matches(T target)
target
- an object ot checktrue
if target matches the criterion, false
otherwise