public class ShouldHave extends BasicErrorMessageFactory
Condition
failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static <T> ErrorMessageFactory |
shouldHave(T actual,
Condition<? super T> condition)
Creates a new
ShouldHave . |
create, create, create, equals, hashCode, toString, unquotedString
public static <T> ErrorMessageFactory shouldHave(T actual, Condition<? super T> condition)
ShouldHave
.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
.Copyright © 2014–2016 AssertJ. All rights reserved.