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

ThrowingAssertionCollectorForExplanation

interface ThrowingAssertionCollectorForExplanation (source)

Represents an assertion collector meant for explanation which throws in case not a single Assertion was collected.

Functions

collect

abstract fun <E : Any> collect(warning: Translatable, assertionCreator: AssertionPlant<E>.() -> Unit, subject: E?): List<Assertion>

Collects the Assertion created by assertionCreator and uses the given subject as CollectingAssertionPlant.subject if not null.