public class ShouldBeBeforeYear extends BasicErrorMessageFactory
Date is before given year failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeBeforeYear(Date actual,
int year)
Creates a new
. |
static ErrorMessageFactory |
shouldBeBeforeYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
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 © 2013–2018 AssertJ. All rights reserved.