kotest-assertions-core / io.kotest.matchers.date / java.time.LocalDateTime / shouldHaveSecond

shouldHaveSecond

infix fun LocalDateTime.shouldHaveSecond(second: Int): Unit

Asserts that the second inputted is equaled the date time second

    val date = LocalDateTime.of(2019, 2, 15, 12, 10, 11, 0)

    date.shouldHaveSecond(11) // Assertion passes