doc / ch.tutteli.atrium.logic.kotlin_1_3 / ResultAssertions

ResultAssertions

interface ResultAssertions (source)

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

Functions

isFailure

abstract fun <TExpected : Throwable> isFailure(container: AssertionContainer<out Result<*>>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected>

isSuccess

abstract fun <E, T : Result<E>> isSuccess(container: AssertionContainer<T>): ExtractedFeaturePostStep<T, E>