Package org.assertj.core.error
Class ShouldBeBeforeYear
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeBeforeYear
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeBeforeYear extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aDateis before given year failed.- Author:
- Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldBeBeforeYear(Date actual, int year)Creates a newShouldBeBeforeYear.static ErrorMessageFactoryshouldBeBeforeYear(Date actual, int year, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBeforeYear.-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldBeBeforeYear
public static ErrorMessageFactory shouldBeBeforeYear(Date actual, int year, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeBeforeYear.- Parameters:
actual- the actual value in the failed assertion.year- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeBeforeYear
public static ErrorMessageFactory shouldBeBeforeYear(Date actual, int year)
Creates a newShouldBeBeforeYear.- Parameters:
actual- the actual value in the failed assertion.year- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory.
-
-