Package org.fest.assertions.error
Class ShouldHave
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldHave
- 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.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ErrorMessageFactory
shouldHave
(T actual, Condition<? super T> condition) Creates a newShouldHave
.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldHave
Creates a newShouldHave
.- 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
.
-