doc / ch.tutteli.atrium.domain.creating / OptionalAssertions

OptionalAssertions

interface OptionalAssertions

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

Functions

isEmpty

abstract fun <T : Optional<*>> isEmpty(expect: Expect<T>): Assertion

isPresent

abstract fun <E, T : Optional<E>> isPresent(expect: Expect<T>): ExtractedFeaturePostStep<T, E>

Inheritors

OptionalAssertionsBuilder

object OptionalAssertionsBuilder : OptionalAssertions

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