public class ShouldNotMatch extends BasicErrorMessageFactory
Predicate failed.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADVICE |
arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldNotMatch(java.lang.Object actual,
java.util.function.Predicate<?> predicate,
PredicateDescription description) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldNotMatch(T actual,
java.util.function.Predicate<? super T> predicate,
PredicateDescription predicateDescription)
Creates a new
ShouldNotMatch. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldNotMatch(java.lang.Object actual,
java.util.function.Predicate<?> predicate,
PredicateDescription description)
public static <T> ErrorMessageFactory shouldNotMatch(T actual, java.util.function.Predicate<? super T> predicate, PredicateDescription predicateDescription)
ShouldNotMatch.T - guarantees that the type of the actual value and the generic type of the Predicate are the same.actual - the actual value in the failed assertion.predicate - the Predicate.predicateDescription - predicate description to include in the error messageErrorMessageFactory.