Package org.assertj.core.error
Class ShouldBeAfterYear
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeAfterYear
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeAfterYear extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aDate
is after given year failed.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeAfterYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeAfterYear(java.util.Date actual, int year)
Creates a newShouldBeAfterYear
.static ErrorMessageFactory
shouldBeAfterYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeAfterYear
.-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldBeAfterYear
private ShouldBeAfterYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
shouldBeAfterYear
public static ErrorMessageFactory shouldBeAfterYear(java.util.Date actual, int year, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeAfterYear
.- Parameters:
actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeAfterYear
public static ErrorMessageFactory shouldBeAfterYear(java.util.Date actual, int year)
Creates a newShouldBeAfterYear
.- Parameters:
actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory
.
-
-