atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / ThrowableAssertionsBuilder

ThrowableAssertionsBuilder

object ThrowableAssertionsBuilder (source)

Delegates inter alia to the implementation of ThrowableAssertions. In detail, it implements ThrowableAssertions by delegating to throwableAssertions which in turn delegates to the implementation via loadSingleService.

Properties

thrown

val thrown: ThrowableThrownAssertionsBuilder

Returns ThrowableThrownAssertionsBuilder which inter alia delegates to the implementation of ThrowableThrownAssertions.

Functions

cause

fun <TExpected : Throwable> cause(expect: <ERROR CLASS><out Throwable>, expectedType: KClass<TExpected>): <ERROR CLASS><Throwable?, TExpected>

thrownBuilder

fun thrownBuilder(assertionVerb: <ERROR CLASS>, act: () -> Unit, reporter: <ERROR CLASS>): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.