Package org.assertj.core.error
Class ShouldBe
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBe
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value satisfies a
Condition
failed.- Author:
- Yvonne Wang, Mikhail Mazursky
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBe
Creates a new
.ShouldBe
- 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
.
-