doc / ch.tutteli.atrium.domain.creating.throwable.thrown / ThrowableThrown / Builder

Builder

interface Builder (source)

The entry point of the Throwable thrown contract.

Properties

act

abstract val act: () -> Unit

assertionVerb

abstract val assertionVerb: Translatable

reporter

abstract val reporter: Reporter

Extension Functions

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well.

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected.

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

Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well.

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well.

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected.

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

Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well.

wirft

fun <TExpected : Throwable> Builder.wirft(): Unit

Makes the assertion that the thrown Throwable is of type TExpected.

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

Makes the assertion that the thrown Throwable is of type TExpected and it assertionCreator which are checked additionally as well.

Inheritors

ThrowableThrownBuilder

class ThrowableThrownBuilder : Builder

Represents the deprecated entry point of the fluent API of sophisticated a Throwable was thrown assertions.