LocalDate type from new Date & Time API introduced in Java 8.
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Access | Constructor and Description |
|---|---|
| protected | AbstractLocalDateAssert(LocalDate
the actual value to verify actual, Class<?> the "self type" selfType)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static void | assertLocalDateAsStringParameterIsNotNull(String
String representing the localDateAsString)LocalDate to compare actual withCheck that the |
| private static void | assertLocalDateParameterIsNotNull(LocalDate
the other)LocalDate to checkCheck that the |
| private void | |
| private static Object[] | |
| public SELF | Returns: this assertion object.the given numeric day. day)Verifies that actual |
| public SELF | |
| public SELF | Returns: this assertion object.the given month's value between 1 and 12 inclusive. month)Verifies that actual |
| public SELF | Returns: this assertion object.the given year. year)Verifies that actual |
| public SELF | |
| public SELF | Returns: this assertion object.String representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDate.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | |
| public SELF | Returns: this assertion object.String representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDate.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | |
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. startInclusive, String the end value (inclusive), expected not to be null. endInclusive)Same assertion as |
| public SELF | Returns: this assertion object.String representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | Returns: this assertion object.String array representing localDatesAsString)LocalDates.Same assertion as |
| 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 representing a localDateAsString)LocalDate.Same assertion as |
| public SELF | Returns: this assertion object.Array of String representing a localDatesAsString)LocalDate.Same assertion as |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, LocalDate the end value (exclusive), expected not to be null. endExclusive)Verifies that the actual |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, String the end value (exclusive), expected not to be null. endExclusive)Same assertion as |
| public SELF | Returns: this assertion object.Verifies that the actual |
| protected LocalDate | parse(String
the string to parse, not null localDateAsString)Implements abstract org. TEMPORAL from a string representation in ISO date format.
|
| NULL_LOCAL_DATE_TIME_PARAMETER_MESSAGE | back to summary |
|---|---|
| public static final String NULL_LOCAL_DATE_TIME_PARAMETER_MESSAGE | |
| AbstractLocalDateAssert | back to summary |
|---|---|
| protected AbstractLocalDateAssert(LocalDate actual, Class<?> selfType) Creates a new | |
| assertLocalDateAsStringParameterIsNotNull | back to summary |
|---|---|
| private static void assertLocalDateAsStringParameterIsNotNull(String localDateAsString) Check that the
| |
| assertLocalDateParameterIsNotNull | back to summary |
|---|---|
| private static void assertLocalDateParameterIsNotNull(LocalDate other) Check that the
| |
| checkIsNotNullAndNotEmpty | back to summary |
|---|---|
| private void checkIsNotNullAndNotEmpty(Object[] values) | |
| convertToLocalDateArray | back to summary |
|---|---|
| private static Object[] convertToLocalDateArray(String... localDatesAsString) | |
| hasDayOfMonth | back to summary |
|---|---|
| public SELF hasDayOfMonth(int day) Verifies that actual Example:
| |
| hasMonth | back to summary |
|---|---|
| public SELF hasMonth(Month month) Verifies that actual Example:
| |
| hasMonthValue | back to summary |
|---|---|
| public SELF hasMonthValue(int month) Verifies that actual Example:
| |
| hasYear | back to summary |
|---|---|
| public SELF hasYear(int year) Verifies that actual Example:
| |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(LocalDate other) Verifies that the actual Example :
| |
| isAfter | back to summary |
|---|---|
| public SELF isAfter(String localDateAsString) Same assertion as Example :
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(LocalDate other) Verifies that the actual Example :
| |
| isAfterOrEqualTo | back to summary |
|---|---|
| public SELF isAfterOrEqualTo(String localDateAsString) Same assertion as Example :
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(LocalDate other) Verifies that the actual Example :
| |
| isBefore | back to summary |
|---|---|
| public SELF isBefore(String localDateAsString) Same assertion as Example :
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(LocalDate other) Verifies that the actual Example :
| |
| isBeforeOrEqualTo | back to summary |
|---|---|
| public SELF isBeforeOrEqualTo(String localDateAsString) Same assertion as Example :
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(LocalDate startInclusive, LocalDate endInclusive) Verifies that the actual Example:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(String startInclusive, String endInclusive) Same assertion as Example:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String localDateAsString) Same assertion as Example :
| |
| isIn | back to summary |
|---|---|
| public SELF isIn(String... localDatesAsString) 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 localDateAsString) Same assertion as Example :
| |
| isNotIn | back to summary |
|---|---|
| public SELF isNotIn(String... localDatesAsString) Same assertion as Example :
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(LocalDate startExclusive, LocalDate endExclusive) Verifies that the actual Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(String startExclusive, String endExclusive) Same assertion as Example:
| |
| isToday | back to summary |
|---|---|
| public SELF isToday() Verifies that the actual Example:
| |
| parse | back to summary |
|---|---|
| protected LocalDate parse(String localDateAsString) Implements abstract org. Doc from org. Obtains an instance of | |