doc / ch.tutteli.atrium.assertions.throwable.thrown / ThrowableThrown / Creator

Creator

interface Creator<TExpected : Throwable>
Deprecated: Use the interface from package domain.creating; will be removed with 1.0.0

Represents the final step of a sophisticated a Throwable was thrown assertion builder which creates the AssertionGroup as such.

Parameters

TExpected - The type of the Throwable which is expected to be thrown.

Functions

executeActAndCreateAssertion

abstract fun executeActAndCreateAssertion(throwableThrownBuilder: ThrowableThrownBuilder, description: Translatable, expectedType: KClass<TExpected>, assertionCreator: AssertionPlant<TExpected>.() -> Unit): Unit

Executes the act lambda of the given throwableThrownBuilder, catches any thrown Throwable, creates based on it a corresponding Assertion representing the sophisticated assertion and also checks whether it holds or not.

Inheritors

ThrowableThrownAssertionCreator

class ThrowableThrownAssertionCreator<TExpected : Throwable> : ThrowableThrown.Creator<TExpected>

Represents a creator of a sophisticated a Throwable (of type TExpected) was thrown assertion.