infix fun LocalTime.shouldNotBeBefore(time: LocalTime): Unit
Asserts that this is NOT before time
Verifies that this is not before time, comparing hours, minutes, seconds, nanos. For example, 12:30:59:2222 is not before 12:30:59:1111, and this assertion should pass for this comparison.
Opposite of LocalTime.shouldBeBefore
val firstTime = LocalTime.of(12:30:59:2222)
val secondTime = LocalTime.of(12:30:59:1111)
firstTime shouldNotBeBefore secondTime // Assertion passes
val firstTime = LocalTime.of(12:30:59:2222)
val secondTime = LocalTime.of(12:30:59:3333)
firstTime shouldNotBeBefore secondTime // Assertion fails, 12:30:59:2222 is before 12:30:59:3333, and we expected the opposite.
See Also