public class ShouldHaveDateField extends BasicErrorMessageFactory
Date
has a year, month, day, ...
failed.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldHaveDateField(java.util.Date actual,
java.lang.String fieldDescription,
int fieldValue) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveDateField(java.util.Date actual,
java.lang.String fieldDescription,
int fieldValue)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldHaveDateField(java.util.Date actual, java.lang.String fieldDescription, int fieldValue)
public static ErrorMessageFactory shouldHaveDateField(java.util.Date actual, java.lang.String fieldDescription, int fieldValue)
ShouldHaveDateField
.actual
- the actual value in the failed assertion.fieldDescription
- the fieldDescription of value : year, month, day, ...fieldValue
- the field value used in the failed assertion to compare the actual date field value to.ErrorMessageFactory
.