atrium-api-cc-en_GB-jvm / ch.tutteli.atrium.api.cc.en_GB / ch.tutteli.atrium.domain.creating.throwable.thrown.ThrowableThrown.Builder

Extensions for ch.tutteli.atrium.domain.creating.throwable.thrown.ThrowableThrown.Builder

notToThrow

fun Builder.notToThrow(): Unit

Makes the assertion that no Throwable is thrown at all.

toThrow

fun <TExpected : Throwable> Builder.toThrow(assertionCreator: Assert<TExpected>.() -> Unit): Unit

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.