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

notToThrow

fun ThrowableThrown.Builder.notToThrow(): Unit
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.9.0#migration for migration hints and scripts.

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.