doc / ch.tutteli.atrium.logic.creating.collectors / collectAssertions

collectAssertions

fun <T, G : ExplanatoryAssertionGroupType, R : ExplanatoryAssertionGroupFinalStep> AssertionsOption<G, R>.collectAssertions(container: AssertionContainer<*>, maybeSubject: Option<T>, assertionCreator: Expect<T>.() -> Unit): ExplanatoryAssertionGroupFinalStep (source)

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

//TODO 0.19.0 in case we somehow incorporate the current container in AssertionsOptions, then remove container as parameter

TODO 1.0.0 at the latest: use type ExplanatoryGroup.FinalStep when ExplanatoryAssertionGroupFinalStep is removed