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

ThrowableThrownAssertionsBuilder

object ThrowableThrownAssertionsBuilder (source)
Deprecated: Will be removed with 1.0.0

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

Properties

providers

val providers: AbsentThrowableMessageProviderFactoryBuilder

Returns AbsentThrowableMessageProviderFactoryBuilder which inter alia delegates to the implementation of ch.tutteli.atrium.domain.creating.throwable.thrown.providers.AbsentThrowableMessageProviderFactory.

Functions

nothingThrown

fun nothingThrown(throwableThrownBuilder: <ERROR CLASS>): <ERROR CLASS>

toBe

fun <TExpected : Throwable> toBe(throwableThrownBuilder: <ERROR CLASS>, expectedType: KClass<TExpected>, assertionCreator: <ERROR CLASS><TExpected>.() -> Unit): <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.