Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotMatch

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
java.lang.String.format, java.util.Objects.requireNonNull

Creates an error message indicating that an assertion that verifies that a value not satisfying a Predicate failed.

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <
guarantees that the type of the actual value and the generic type of the Predicate are the same.
T
>
ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotMatch
(T
the actual value in the failed assertion.
actual
,
Predicate<? super T>
the Predicate.
predicate
,
PredicateDescription
predicate description to include in the error message
predicateDescription
)

Creates a new ShouldNotMatch.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

ADVICEback to summary
public static final String ADVICE

Constructor Detail

ShouldNotMatchback to summary
private ShouldNotMatch(Object actual, PredicateDescription description)

Method Detail

shouldNotMatchback to summary
public static <T> ErrorMessageFactory shouldNotMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription)

Creates a new ShouldNotMatch.

Parameters
<T>
guarantees that the type of the actual value and the generic type of the Predicate are the same.
actual:T

the actual value in the failed assertion.

predicate:Predicate<? super T>

the Predicate.

predicateDescription:PredicateDescription

predicate description to include in the error message

Returns:ErrorMessageFactory

the created ErrorMessageFactory.