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