public class ShouldNotAccept extends BasicErrorMessageFactory
Predicate not accepting a value failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldNotAccept(Predicate<? super T> predicate,
T value,
PredicateDescription description)
Creates a new
ShouldNotAccept. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static <T> ErrorMessageFactory shouldNotAccept(Predicate<? super T> predicate, T value, PredicateDescription description)
ShouldNotAccept.T - guarantees that the type of the value value and the generic type of the Predicate are the same.predicate - the Predicate.value - the value value in the failed assertion.description - predicate description to include in the error message,ErrorMessageFactory.Copyright © 2014–2016 AssertJ. All rights reserved.