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
ShouldBeBeforeYear . |
static ErrorMessageFactory |
shouldBeBeforeYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeYear . |
create, create, equals, hashCode, toString, unquotedString
public 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.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.Copyright © 2013–2014 AssertJ. All rights reserved.