Package org.assertj.core.error
Class ShouldNotMatch
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotMatch
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotMatch extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value not satisfying afailed.Predicate
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotMatch(Object actual, PredicateDescription description)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ErrorMessageFactoryshouldNotMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription)Creates a new.ShouldNotMatch-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
ADVICE
public static final String ADVICE
-
-
Constructor Detail
-
ShouldNotMatch
private ShouldNotMatch(Object actual, PredicateDescription description)
-
-
Method Detail
-
shouldNotMatch
public static <T> ErrorMessageFactory shouldNotMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription)
Creates a new.ShouldNotMatch- Type Parameters:
T- guarantees that the type of the actual value and the generic type of thePredicateare 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.
-
-