public class ShouldBeBeforeYear extends BasicErrorMessageFactory
Date
is before given year failed.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldBeBeforeYear(java.util.Date actual,
int year,
ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeBeforeYear(java.util.Date actual,
int year)
Creates a new
ShouldBeBeforeYear . |
static ErrorMessageFactory |
shouldBeBeforeYear(java.util.Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeYear . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldBeBeforeYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldBeBeforeYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
ShouldBeBeforeYear
.actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeBeforeYear(java.util.Date actual, int year)
ShouldBeBeforeYear
.actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.ErrorMessageFactory
.