doc / ch.tutteli.atrium.api.cc.infix.en_GB / notToThrow

notToThrow

fun ThrowableThrown.Builder.notToThrow(): Unit (source)

Makes the assertion that no Throwable is thrown at all.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
Notice, that this assertion function cannot provide a fluent API because we assume nothing happens, so there is nothing we could make assertions on in addition.