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

Fun0Assertions

interface Fun0Assertions (source)

Defines the minimum set of assertion functions and builders applicable to lambdas with arity 0 (i.e. a lambda with 0 arguments or in other words () -> R), which an implementation of the domain of Atrium has to provide.

Functions

isNotThrowing

abstract fun <R, T : () -> R> isNotThrowing(expect: Expect<T>): ChangedSubjectPostStep<*, R>

isThrowing

abstract fun <TExpected : Throwable> isThrowing(expect: Expect<() -> Any?>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<*, TExpected>

Inheritors

Fun0AssertionsBuilder

object Fun0AssertionsBuilder : Fun0Assertions

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