Package org.fest.assertions.error
Class ShouldBe
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldBe
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBe extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Condition
- Author:
- Yvonne Wang, Mikhail Mazursky
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ErrorMessageFactory
shouldBe(T actual, Condition<? super T> condition)
Creates a newShouldBe
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldBe
public static <T> ErrorMessageFactory shouldBe(T actual, Condition<? super T> condition)
Creates a newShouldBe
.- 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
.
-
-