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

ThrowableThrownAssertions

interface ThrowableThrownAssertions (source)

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: Builder): Unit

toBe

abstract fun <TExpected : Throwable> toBe(throwableThrownBuilder: 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.