public class ShouldBe extends BasicErrorMessageFactory
Condition
failed.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldBe(java.lang.Object actual,
Condition<?> condition) |
Modifier and Type | Method and Description |
---|---|
static <T> ErrorMessageFactory |
shouldBe(T actual,
Condition<? super T> condition)
Creates a new
ShouldBe . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldBe(java.lang.Object actual, Condition<?> condition)
public static <T> ErrorMessageFactory shouldBe(T actual, Condition<? super T> condition)
ShouldBe
.T
- guarantees that the type of the actual value and the generic type of the Condition
are the same.actual
- the actual value in the failed assertion.condition
- the Condition
.ErrorMessageFactory
.