public class ShouldBeWithin extends BasicErrorMessageFactory
Date
is within a year, month, day, ...
failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeWithin(java.util.Date actual,
java.lang.String fieldDescription,
int fieldValue)
Creates a new
ShouldBeWithin . |
create, equals, hashCode, toString
public static ErrorMessageFactory shouldBeWithin(java.util.Date actual, java.lang.String fieldDescription, int fieldValue)
ShouldBeWithin
.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
.Copyright © 2007–2018. All rights reserved.