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

collectAssertions

fun <T, G : ExplanatoryAssertionGroupType, R> AssertionsOption<G, R>.collectAssertions(maybeSubject: Option<T>, assertionCreator: Expect<T>.() -> Unit): R (source)
Deprecated: Use collectAssertions from atrium-logic which requires to pass an instance of an AssertionContainer; will be removed with 0.17.0

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