public class ShouldBeAfterYear extends BasicErrorMessageFactory
Date
is after given year failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeAfterYear(Date actual,
int year)
Creates a new
. |
static ErrorMessageFactory |
shouldBeAfterYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldBeAfterYear(Date actual, int year, ComparisonStrategy comparisonStrategy)
ShouldBeAfterYear
.actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.comparisonStrategy
- the ComparisonStrategy
used.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeAfterYear(Date actual, int year)
ShouldBeAfterYear
.actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.ErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.