interface ResultAssertions
Defines the minimum set of assertion functions and builders applicable to Result, which an implementation of the domain of Atrium has to provide.
abstract fun <TExpected : Throwable> isFailure(assertionContainer: Expect<out Result<*>>, expectedType: KClass<TExpected>): ChangedSubjectPostStep<Throwable?, TExpected> |
|
abstract fun <E, T : Result<E>> isSuccess(assertionContainer: Expect<T>): ExtractedFeaturePostStep<T, E> |
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. |