Package org.assertj.core.error
Class ShouldHavePeriod
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHavePeriod
- All Implemented Interfaces:
ErrorMessageFactory
-
Field Summary
FieldsFields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldHavePeriod
(Period actual, int actualSpecific, int expectedSpecific, String metric) -
Method Summary
Modifier and TypeMethodDescriptionstatic ShouldHavePeriod
shouldHaveDays
(Period actual, int actualDays, int expectedDays) static ShouldHavePeriod
shouldHaveMonths
(Period actual, int actualMonths, int expectedMonths) static ShouldHavePeriod
shouldHaveYears
(Period actual, int actualYear, int expectedYear) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Field Details
-
EXPECTED_PREFIX
- See Also:
-
-
Constructor Details
-
ShouldHavePeriod
-
-
Method Details
-
shouldHaveYears
-
shouldHaveMonths
public static ShouldHavePeriod shouldHaveMonths(Period actual, int actualMonths, int expectedMonths) -
shouldHaveDays
-