doc / ch.tutteli.atrium.api.infix.en_GB / toBeAfter

toBeAfter

infix fun <T : ChronoLocalDate> Expect<T>.toBeAfter(expected: ChronoLocalDate): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDate) is after the expected.

expect(LocalDate.of(2021, Month.AUGUST, 6)) toBeAfter LocalDate.of(2021, Month.JULY, 1)

Return
an Expect for the subject of this expectation.

Since
0.17.0

infix fun <T : ChronoLocalDate> Expect<T>.toBeAfter(expected: String): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDate) is after the expected given as String.

expect(LocalDate.of(2021, Month.AUGUST, 6)) toBeAfter "2021-07-01"

Exceptions

IllegalArgumentException - in case expected is not in the form of yyyy-mm-dd

Return
an Expect for the subject of this expectation.

Since
0.17.0

infix fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.toBeAfter(expected: ChronoLocalDateTime<*>): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDateTime) is after the expected.

expect(LocalDateTime.of(2021, Month.JUNE, 6, 12, 10, 0, 0)) toBeAfter LocalDateTime.of(2021, Month.JUNE, 6, 10, 5, 35, 103)

Return
an Expect for the subject of this expectation.

Since
0.17.0

infix fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.toBeAfter(expected: ChronoZonedDateTime<*>): Expect<T> (source)

Expects that the subject of this expectation (a ChronoZonedDateTime) is after the expected.

expect(ZonedDateTime.of(2021, 6, 6, 12, 10, 0, 0, ZoneId.of("America/Sao_Paulo"))) toBeAfter ZonedDateTime.of(2021, 6, 6, 10, 5, 35, 103, ZoneId.of("America/Sao_Paulo"))

Return
an Expect for the subject of this expectation.

Since
0.17.0