Package org.assertj.core.error
Class ShouldBeBeforeYear
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeBeforeYear
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Date
is before given year failed.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldBeBeforeYear
(Date actual, int year, ComparisonStrategy comparisonStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldBeBeforeYear
(Date actual, int year) Creates a new
.ShouldBeBeforeYear
static ErrorMessageFactory
shouldBeBeforeYear
(Date actual, int year, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldBeBeforeYear
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldBeBeforeYear
-
-
Method Details
-
shouldBeBeforeYear
public static ErrorMessageFactory shouldBeBeforeYear(Date actual, int year, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldBeBeforeYear
- Parameters:
actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.comparisonStrategy
- theComparisonStrategy
used.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeBeforeYear
Creates a new
.ShouldBeBeforeYear
- Parameters:
actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.- Returns:
- the created
ErrorMessageFactory
.
-