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

Builder

interface Builder
Deprecated: Use Expect instead; will be removed with 1.0.0

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

notToThrow

fun ThrowableThrown.Builder.notToThrow(): Unit

Makes the assertion that no Throwable is thrown at all.

notToThrow

fun ThrowableThrown.Builder.notToThrow(): Unit

Makes the assertion that no Throwable is thrown at all.

toThrow

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

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

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

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.

toThrow

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

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

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

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.

toThrow

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

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.

wirft

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

Makes the assertion that the thrown Throwable is of type TExpected and holds all assertions the assertionCreator might create in addition.

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

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

wirftNichts

fun ThrowableThrown.Builder.wirftNichts(): Unit

Makes the assertion that no Throwable is thrown at all.

Inheritors

ThrowableThrownBuilder

class ThrowableThrownBuilder : ThrowableThrown.Builder

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