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

ThrowableThrown

interface ThrowableThrown

Defines the contract for sophisticated a Throwable was thrown assertions.

An assertion starts with a ThrowableThrownBuilder and is typically built up by an AbsentThrowableMessageProvider and an AnyNarrow.DownCastFailureHandler which are passed to a Creator which finally builds the assertion.

Types

AbsentThrowableMessageProvider

interface AbsentThrowableMessageProvider

Provides a message which can be used in reporting to represent the case that no Throwable at all was thrown.

Creator

interface Creator<TExpected : Throwable>

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