LocalDateTime 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 | AbstractLocalDateTimeAssert(LocalDateTime
the actual value to verify actual, Class<?> the "self type" selfType)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if both datetime are in the same year, month, day of month and hour, false otherwise.the actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year, month, day of month and hour, false otherwise. |
| private static boolean | Returns: true if both datetime are in the same year, month and day of month, hour, minute and second, false otherwise.the actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year, month and day of month, hour, minute and second, false otherwise. |
| private static boolean | Returns: true if both datetime are in the same year, month, day of month, hour and minute, false otherwise.the actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year, month, day of month, hour and minute, false otherwise. |
| private static void | assertLocalDateTimeAsStringParameterIsNotNull(String
String representing the localDateTimeAsString)LocalDateTime to compare actual withCheck that the |
| private static void | assertLocalDateTimeParameterIsNotNull(LocalDateTime
the other)LocalDateTime to checkCheck that the |
| private Comparables | |
| private void | |
| private static Object[] | |
| public SELF | Returns: this assertion object.the given numeric day. dayOfMonth)Verifies that actual |
| public SELF | Returns: this assertion object.the given hour. hour)Verifies that actual |
| public SELF | Returns: this assertion object.the given minute. minute)Verifies that actual |
| public SELF | Returns: this assertion object.the given month)Month.Verifies that actual |
| public SELF | Returns: this assertion object.the given month value between 1 and 12 inclusive. monthVal)Verifies that actual |
| public SELF | Returns: this assertion object.the given second. nano)Verifies that actual |
| public SELF | Returns: this assertion object.the given second. second)Verifies that actual |
| public SELF | Returns: this assertion object.the given year. year)Verifies that actual |
| private static boolean | Returns: true if both datetime are in the same year, false otherwisethe actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year, false otherwise. |
| private static boolean | Returns: true if both datetime are in the same year and month, false otherwisethe actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year and month, false otherwise. |
| private static boolean | Returns: true if both datetime are in the same year, month and day of month, false otherwisethe actual datetime. expected not be null actual, LocalDateTime the other datetime. expected not be null other)Returns true if both datetime are in the same year, month and day of month, false otherwise. |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Verifies that the actual |
| public SELF | Returns: this assertion object.String representing a localDateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. startInclusive, LocalDateTime the end value (inclusive), expected not to be null. endInclusive)Verifies that the actual |
| 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 objectthe localDateTime to compare actual to other, TemporalOffset<? super LocalDateTime> the offset used for comparison offset)Overrides org. LocalDateTime is close to the other according to the given TemporalOffset.
|
| public SELF | Returns: this assertion objectThe offset used for comparison offset)Verifies that the actual |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Overrides org. Implements org. LocalDateTime is equal to the given one according to the ChronoLocalDateTime#timeLineOrder() comparator
which is consistent with LocalDateTime#isEqual(ChronoLocalDateTime).
|
| public SELF | Returns: this assertion object.String representing a dateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.
Deprecated
Use
Verifies that actual and given isCloseTo(LocalDateTime, TemporalOffset) instead, although not exactly the same semantics,
this is the right way to compare with a given precision.
LocalDateTime have same year, month and day fields (hour, minute, second and
nanosecond fields are ignored in comparison).
|
| public SELF | Returns: this assertion object.the given other)LocalDateTime.
Deprecated
Use
Verifies that actual and given isCloseTo(LocalDateTime, TemporalOffset) instead, although not exactly the same semantics,
this is the right way to compare with a given precision.
LocalDateTime have same year, month, day and hour fields (minute, second and
nanosecond fields are ignored in comparison).
|
| public SELF | Returns: this assertion object.the given other)LocalDateTime.Verifies that actual and given |
| public SELF | Returns: this assertion object.the given other)LocalDateTime.
Deprecated
Use
Verifies that actual and given isCloseTo(LocalDateTime, TemporalOffset) instead, although not exactly the same semantics,
this is the right way to compare with a given precision.
LocalDateTime have same year, month, day, hour and minute fields (second and
nanosecond fields are ignored in comparison).
|
| public SELF | Returns: this assertion object.String array representing dateTimesAsString)LocalDateTimes.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.the given value to compare the actual value to. other)Overrides org. Implements org. LocalDateTime is not equal to the given one according to the ChronoLocalDateTime#timeLineOrder() comparator
which is consistent with LocalDateTime#isEqual(ChronoLocalDateTime).
|
| public SELF | Returns: this assertion object.String representing a dateTimeAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.Array of String representing a dateTimesAsString)LocalDateTime.Same assertion as |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, LocalDateTime 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 |
| protected LocalDateTime | parse(String
the string to parse, not null localDateTimeAsString)Implements abstract org. TEMPORAL from a string representation in ISO date format.
|
| public SELF | usingDefaultComparator()
Overrides org. Implements org. |