doc / ch.tutteli.atrium.domain.builders.kotlin_1_3.creating / ResultAssertionsBuilder

ResultAssertionsBuilder

object ResultAssertionsBuilder : ResultAssertions
Deprecated: Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0

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

Functions

isFailure

fun <TExpected : Throwable> isFailure(expect: Expect<out Result<*>>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected>

isSuccess

fun <E, T : Result<E>> isSuccess(expect: Expect<T>): ExtractedFeaturePostStep<T, E>