doc / ch.tutteli.atrium.domain.creating / ThrowableAssertions

ThrowableAssertions

interface ThrowableAssertions
Deprecated: Use ThrowableAssertions from atrium-logic; will be removed with 1.0.0

Defines the minimum set of assertion functions and builders applicable to Throwable, which an implementation of the domain of Atrium has to provide.

Functions

cause

abstract fun <TExpected : Throwable> cause(expect: Expect<out Throwable>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected>

thrownBuilder

open fun thrownBuilder(assertionVerb: String, act: () -> Unit, reporter: Reporter): ThrowableThrown.Builder

Turns the given assertionVerb into an Untranslatable and delegates to the other overload.

abstract fun thrownBuilder(assertionVerb: Translatable, act: () -> Unit, reporter: Reporter): ThrowableThrown.Builder

Inheritors

ThrowableAssertionsBuilder

object ThrowableAssertionsBuilder : ThrowableAssertions

Delegates inter alia to the implementation of ThrowableAssertions. In detail, it implements ThrowableAssertions by delegating to throwableAssertions which in turn delegates to the implementation via loadSingleService.