Package org.assertj.core.error
Class ShouldMatch
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldMatch
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value satisfies a
Predicate
failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactory
shouldMatch
(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription) Creates a new
.ShouldMatch
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
ADVICE
-
-
Method Details
-
shouldMatch
public static <T> ErrorMessageFactory shouldMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription) Creates a new
.ShouldMatch
- Type Parameters:
T
- guarantees that the type of the actual value and the generic type of thePredicate
are the same.- Parameters:
actual
- the actual value in the failed assertion.predicate
- thePredicate
.predicateDescription
- predicate description to include in the error message- Returns:
- the created
ErrorMessageFactory
.
-