kotest-assertions-core / io.kotest.matchers.date / java.sql.Timestamp

Extensions for java.sql.Timestamp

shouldBeAfter

Assert that Timestamp is after anotherTimestamp.

infix fun Timestamp.shouldBeAfter(anotherTimestamp: Timestamp): Unit

shouldBeBefore

Assert that Timestamp is before anotherTimestamp.

infix fun Timestamp.shouldBeBefore(anotherTimestamp: Timestamp): Unit

shouldBeBetween

Assert that Timestamp is between fromTimestamp and toTimestamp.

fun Timestamp.shouldBeBetween(fromTimestamp: Timestamp, toTimestamp: Timestamp): Unit

shouldNotBeAfter

Assert that Timestamp is not after anotherTimestamp.

infix fun Timestamp.shouldNotBeAfter(anotherTimestamp: Timestamp): Unit

shouldNotBeBefore

Assert that Timestamp is not before anotherTimestamp.

infix fun Timestamp.shouldNotBeBefore(anotherTimestamp: Timestamp): Unit

shouldNotBeBetween

Assert that Timestamp is not between fromTimestamp and toTimestamp.

fun Timestamp.shouldNotBeBetween(fromTimestamp: Timestamp, toTimestamp: Timestamp): Unit