doc / ch.tutteli.atrium.logic / Fun0Assertions

Fun0Assertions

interface Fun0Assertions

Collection of assertion functions and builders which are applicable to subjects with a kotlin.Function0 type.

Functions

notToThrow

abstract fun <R, T : () -> R> notToThrow(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<*, R>

toThrow

abstract fun <TExpected : Throwable> toThrow(container: AssertionContainer<() -> Any?>, expectedType: KClass<TExpected>): SubjectChangerBuilder.ExecutionStep<*, TExpected>

Inheritors

DefaultFun0Assertions

class DefaultFun0Assertions : Fun0Assertions