java.sql.Timestamp |
|
java.time.Instant |
|
java.time.LocalDate |
|
java.time.LocalDateTime |
|
java.time.LocalTime |
|
java.time.OffsetDateTime |
|
java.time.ZonedDateTime |
after |
fun after(anotherInstant: Instant): Matcher<Instant>
Matcher that compares two LocalTimes and checks whether one is after the other fun after(time: LocalTime): Matcher<LocalTime>
Matcher that compares two LocalDates and checks whether one is after the other fun after(date: LocalDate): Matcher<LocalDate>
Matcher that compares two LocalDateTimes and checks whether one is after the other fun after(date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares two ZonedDateTimes and checks whether one is after the other fun after(date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares two OffsetDateTimes and checks whether one is after the other fun after(date: OffsetDateTime): Matcher<OffsetDateTime> |
beAfter |
fun beAfter(timestamp: Timestamp): Matcher<Timestamp> |
beBefore |
fun beBefore(timestamp: Timestamp): Matcher<Timestamp> |
beBetween |
fun beBetween(fromTimestamp: Timestamp, toTimestamp: Timestamp): Matcher<Timestamp> |
before |
fun before(anotherInstant: Instant): Matcher<Instant>
Matcher that compares two LocalTimes and checks whether one is before the other fun before(time: LocalTime): Matcher<LocalTime>
Matcher that compares two LocalDates and checks whether one is before the other fun before(date: LocalDate): Matcher<LocalDate>
Matcher that compares two LocalDateTimes and checks whether one is before the other fun before(date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares two ZonedDateTimes and checks whether one is before the other fun before(date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares two OffsetDateTimes and checks whether one is before the other fun before(date: OffsetDateTime): Matcher<OffsetDateTime> |
beInToday |
Matcher that checks if a LocalDateTime has a Date component of today fun beInToday(): Matcher<LocalDateTime> |
beInTodayODT |
fun beInTodayODT(): Matcher<OffsetDateTime> |
beInTodayZDT |
fun beInTodayZDT(): Matcher<ZonedDateTime> |
beToday |
Matcher that checks if a LocalDate is today fun beToday(): Matcher<LocalDate> |
between |
fun between(fromInstant: Instant, toInstant: Instant): Matcher<Instant>
Matcher that checks if LocalTime is between two other LocalTimes fun between(a: LocalTime, b: LocalTime): Matcher<LocalTime>
Matcher that checks if LocalDate is between two other LocalDates fun between(a: LocalDate, b: LocalDate): Matcher<LocalDate>
Matcher that checks if LocalDateTime is between two other LocalDateTimes fun between(a: LocalDateTime, b: LocalDateTime): Matcher<LocalDateTime>
Matcher that checks if ZonedDateTime is between two other ZonedDateTimes fun between(a: ZonedDateTime, b: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that checks if OffsetDateTime is between two other OffsetDateTimes fun between(a: OffsetDateTime, b: OffsetDateTime): Matcher<OffsetDateTime> |
haveSameDay |
Matcher that compares days of LocalDates fun haveSameDay(date: LocalDate): Matcher<LocalDate>
Matcher that compares days of LocalDateTimes fun haveSameDay(date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares days of ZonedDateTimes fun haveSameDay(date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares days of OffsetDateTimes fun haveSameDay(date: OffsetDateTime): Matcher<OffsetDateTime> |
haveSameHours |
Matcher that compares hours of LocalTimes fun haveSameHours(time: LocalTime): Matcher<LocalTime> |
haveSameMinutes |
Matcher that compares minutes of LocalTimes fun haveSameMinutes(time: LocalTime): Matcher<LocalTime> |
haveSameMonth |
Matcher that compares months of LocalDates fun haveSameMonth(date: LocalDate): Matcher<LocalDate>
Matcher that compares months of LocalDateTimes fun haveSameMonth(date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares months of ZonedDateTimes fun haveSameMonth(date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares months of OffsetDateTimes fun haveSameMonth(date: OffsetDateTime): Matcher<OffsetDateTime> |
haveSameNanos |
Matcher that compares nanos of LocalTimes fun haveSameNanos(time: LocalTime): Matcher<LocalTime> |
haveSameSeconds |
Matcher that compares seconds of LocalTimes fun haveSameSeconds(time: LocalTime): Matcher<LocalTime> |
haveSameYear |
Matcher that compares years of LocalDates fun haveSameYear(date: LocalDate): Matcher<LocalDate>
Matcher that compares years of LocalDateTimes fun haveSameYear(date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares years of ZonedDateTimes fun haveSameYear(date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares years of OffsetDateTimes fun haveSameYear(date: OffsetDateTime): Matcher<OffsetDateTime> |
within |
Matcher that compares two LocalDates and checks whether one is within period of the other fun within(period: Period, date: LocalDate): Matcher<LocalDate>
Matcher that compares two LocalDateTimes and checks whether one is within temporalAmount of the other fun within(temporalAmount: TemporalAmount, date: LocalDateTime): Matcher<LocalDateTime>
Matcher that compares two ZonedDateTimes and checks whether one is within temporalAmount of the other fun within(temporalAmount: TemporalAmount, date: ZonedDateTime): Matcher<ZonedDateTime>
Matcher that compares two OffsetDateTimes and checks whether one is within temporalAmount of the other fun within(temporalAmount: TemporalAmount, date: OffsetDateTime): Matcher<OffsetDateTime> |