Package org.assertj.core.error
Class ShouldBeAfterYear
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeAfterYear
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Date is after given year failed.- Author:
- Joel Costigliola
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeAfterYear(Date actual, int year) Creates a new.ShouldBeAfterYearstatic ErrorMessageFactoryshouldBeAfterYear(Date actual, int year, ComparisonStrategy comparisonStrategy) Creates a new.ShouldBeAfterYearMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeAfterYear
public static ErrorMessageFactory shouldBeAfterYear(Date actual, int year, ComparisonStrategy comparisonStrategy) Creates a new.ShouldBeAfterYear- Parameters:
actual- the actual value in the failed assertion.year- the year to compare the actual date's year to.comparisonStrategy- theComparisonStrategyused.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeAfterYear
Creates a new.ShouldBeAfterYear- Parameters:
actual- the actual value in the failed assertion.year- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory.
-