doc / ch.tutteli.atrium.domain.builders.utils / validateAtMost

validateAtMost

fun validateAtMost(times: Int, atMostCall: (Int) -> String, atLeastCall: (Int) -> String, exactlyCall: (Int) -> String): Unit (source)
Deprecated: Use validateAtMost from atrium-logic; will be removed with 0.17.0

Validates that times is not 1; throws an IllegalArgumentException otherwise, pointing the user to use the given exactlyCall instead of the given atMostCall.