doc / ch.tutteli.atrium.domain.kotlin_1_3.creating / ResultAssertions

ResultAssertions

interface ResultAssertions
Deprecated: Use ResultAssertions from atrium-logic; will be removed with 1.0.0

Defines the minimum set of assertion functions and builders applicable to Result, which an implementation of the domain of Atrium has to provide.

Functions

isFailure

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

isSuccess

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

Inheritors

ResultAssertionsBuilder

object ResultAssertionsBuilder : ResultAssertions

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.