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
ConstructorsModifierConstructorDescriptionprivateShouldHavePeriod(Period actual, int actualSpecific, int expectedSpecific, String metric) -
Method Summary
Modifier and TypeMethodDescriptionstatic ShouldHavePeriodshouldHaveDays(Period actual, int actualDays, int expectedDays) static ShouldHavePeriodshouldHaveMonths(Period actual, int actualMonths, int expectedMonths) static ShouldHavePeriodshouldHaveYears(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
-