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

ResultAssertions

interface ResultAssertions

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

Functions

isFailureOfType

abstract fun <TExpected : Throwable> isFailureOfType(container: AssertionContainer<out Result<*>>, expectedType: KClass<TExpected>): SubjectChangerBuilder.ExecutionStep<Throwable?, TExpected>

isSuccess

abstract fun <E, T : Result<E>> isSuccess(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, E>

Inheritors

DefaultResultAssertions

class DefaultResultAssertions : ResultAssertions