doc / ch.tutteli.atrium.domain.creating.throwable.thrown.creators / ThrowableThrownAssertions

ThrowableThrownAssertions

interface ThrowableThrownAssertions (source)
Deprecated: Use Fun0Assertions instead; will be removed with 1.0.0

Defines the minimum set of "a Throwable was thrown"-assertion functions, which an implementation of the domain of Atrium has to provide.

Functions

nothingThrown

abstract fun nothingThrown(throwableThrownBuilder: ThrowableThrown.Builder): Unit

toBe

abstract fun <TExpected : Throwable> toBe(throwableThrownBuilder: ThrowableThrown.Builder, expectedType: KClass<TExpected>, assertionCreator: AssertionPlant<TExpected>.() -> Unit): Unit

Inheritors

ThrowableThrownAssertionsBuilder

object ThrowableThrownAssertionsBuilder : ThrowableThrownAssertions

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.