doc / ch.tutteli.atrium.domain.builders.creating.collectors

Package ch.tutteli.atrium.domain.builders.creating.collectors

Contains the builder behind ExpectImpl.collector

Types

AssertionCollectorBuilder

object AssertionCollectorBuilder : AssertionCollector

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

ExplainingAssertionCollectorOption

object ExplainingAssertionCollectorOption

Delegates inter alia to the implementation of ThrowingAssertionCollectorForExplanation and NonThrowingAssertionCollectorForExplanation.

Functions

collectAssertions

fun <T, G : ExplanatoryAssertionGroupType, R> AssertionsOption<G, R>.collectAssertions(expect: Expect<T>, assertionCreator: Expect<T>.() -> Unit): R
fun <T, G : ExplanatoryAssertionGroupType, R> AssertionsOption<G, R>.collectAssertions(maybeSubject: Option<T>, assertionCreator: Expect<T>.() -> Unit): R

Collects the assertions assertionCreator creates and uses them as AssertionGroup.assertions.