YearMonth type
from new Date & Time API introduced in Java 8.
| Access | Constructor and Description |
|---|---|
| protected | AbstractYearMonthAssert(YearMonth
the actual value to verify. actual, Class<?> the "self-type". selfType)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static void | assertYearMonthAsStringParameterIsNotNull(String
string representing the otherYearMonthAsString)YearMonth to compare actual with.Check that the |
| private static void | assertYearMonthParameterIsNotNull(YearMonth
the other)YearMonth to check.Check that the |
| private static void | |
| private static Object[] | |
| public SELF | |
| public SELF | Returns: this assertion object.the given month's value between 1 and 12 inclusive. month)Verifies that the actual |
| public SELF | Returns: this assertion object.the given year. year)Verifies that the actual |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.the other other)YearMonth to compare to, not null.Verifies that the actual |
| public SELF | Returns: this assertion object.string representation of the other otherYearMonthAsString)YearMonth to compare to, not null.Verifies that the actual |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.the other other)YearMonth to compare to, not null.Verifies that the actual |
| public SELF | Returns: this assertion object.string representation of the other otherYearMonthAsString)YearMonth to compare to, not null.Verifies that the actual |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.Verifies that the actual |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.Verifies that the actual |
| public SELF | Returns: this assertion object.Verifies that the actual |
| public SELF | Returns: this assertion object.string representation of the other otherYearMonthAsString)YearMonth to compare to, not null.Verifies that the actual |
| public SELF | |
| public SELF | Returns: this assertion object.the start value (exclusive), not null. startExclusive, YearMonth the end value (exclusive), not null. endExclusive)Verifies that the actual |
| public SELF | Returns: this assertion object.the start value (exclusive), not null. startExclusive, String the end value (exclusive), not null. endExclusive)Verifies that the actual |
| protected YearMonth | parse(String
the string to parse, not null yearMonthAsString)Implements abstract org. YearMonth from a text string such as 2007-12.
|
| AbstractYearMonthAssert | back to summary |
|---|---|
| protected AbstractYearMonthAssert(YearMonth actual, Class<?> selfType) Creates a new | |
| assertYearMonthAsStringParameterIsNotNull | back to summary |
|---|---|
| private static void assertYearMonthAsStringParameterIsNotNull(String otherYearMonthAsString) Check that the
| |
| assertYearMonthParameterIsNotNull | back to summary |
|---|---|
| private static void assertYearMonthParameterIsNotNull(YearMonth other) Check that the
| |
| checkIsNotNullAndNotEmpty | back to summary |
|---|---|
| private static void checkIsNotNullAndNotEmpty(Object[] values) | |
| convertToYearMonthArray | back to summary |
|---|---|
| private static Object[] convertToYearMonthArray(String... yearMonthsAsString) | |
| hasMonth | back to summary |
|---|---|
| public SELF hasMonth(Month month) Verifies that the actual Example:
| |
| hasMonthValue | back to summary |
|---|---|
| public SELF hasMonthValue(int month) Verifies that the actual Example:
| |
| hasYear | back to summary |
|---|---|
| public SELF hasYear(int year) Verifies that the actual Example:
| |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(YearMonth other) Verifies that the actual Example:
| |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(YearMonth other) Verifies that the actual Example:
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(YearMonth other) Verifies that the actual Example:
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(YearMonth other) Verifies that the actual Example:
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(YearMonth startInclusive, YearMonth endInclusive) Verifies that the actual Example:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(String startInclusive, String endInclusive) Verifies that the actual
Same assertion as Example:
| |
| isCurrentYearMonth | back to summary |
|---|---|
| public SELF isCurrentYearMonth() Verifies that the actual Example:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isIn | back to summary |
|---|---|
| public SELF isIn(String... otherYearMonthsAsString) Verifies that the actual
Same assertion as Example:
| |
| isInTheFuture | back to summary |
|---|---|
| public SELF isInTheFuture() Verifies that the actual Example:
| |
| isInThePast | back to summary |
|---|---|
| public SELF isInThePast() Verifies that the actual Example:
| |
| isNotEqualTo | back to summary |
|---|---|
| public SELF isNotEqualTo(String otherYearMonthAsString) Verifies that the actual
Same assertion as Example:
| |
| isNotIn | back to summary |
|---|---|
| public SELF isNotIn(String... otherYearMonthsAsString) Verifies that the actual
Same assertion as Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(YearMonth startExclusive, YearMonth endExclusive) Verifies that the actual Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(String startExclusive, String endExclusive) Verifies that the actual
Same assertion as Example:
| |
| parse | back to summary |
|---|---|
| protected YearMonth parse(String yearMonthAsString) Implements abstract org. Obtains an instance of
| |