public class ShouldBeWithin extends BasicErrorMessageFactory
Date is within a year, month, day, ...
failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeWithin(Date actual,
String fieldDescription,
int fieldValue)
Creates a new
ShouldBeWithin. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeWithin(Date actual, 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 © 2013-2015 AssertJ. All Rights Reserved.