Package org.assertj.core.error
Class ShouldHave
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHave
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value satisfies a
Condition
failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldHave
(Object actual, Condition<?> condition) private
ShouldHave
(T actual, Join<? super T> join) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactory
shouldHave
(T actual, Condition<? super T> condition) Creates a new
.ShouldHave
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldHave
-
ShouldHave
-
-
Method Details
-
shouldHave
Creates a new
.ShouldHave
- Type Parameters:
T
- guarantees that the type of the actual value and the generic type of theCondition
are the same.- Parameters:
actual
- the actual value in the failed assertion.condition
- theCondition
.- Returns:
- the created
ErrorMessageFactory
.
-