ErrorMessageFactorypublic class ShouldBeBeforeYear extends BasicErrorMessageFactory
Date is before given year failed.arguments, format| Modifier and Type | Method | Description |
|---|---|---|
static ErrorMessageFactory |
shouldBeBeforeYear(Date actual,
int year) |
Creates a new
ShouldBeBeforeYear. |
static ErrorMessageFactory |
shouldBeBeforeYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy) |
Creates a new
ShouldBeBeforeYear. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeBeforeYear(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(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.Copyright © 2014–2019. All rights reserved.