ErrorMessageFactory
public class ShouldBeAfterYear extends BasicErrorMessageFactory
Date
is after given year failed.arguments, format
Modifier and Type | Method | Description |
---|---|---|
static ErrorMessageFactory |
shouldBeAfterYear(Date actual,
int year) |
Creates a new
ShouldBeAfterYear . |
static ErrorMessageFactory |
shouldBeAfterYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy) |
Creates a new
ShouldBeAfterYear . |
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.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. All rights reserved.