doc / ch.tutteli.atrium.creating / AssertionCollector / Collector

Collector

class Collector

Constructors

<init>

Collector(throwIfNoAssertionIsCollected: Boolean)

Functions

collectAssertionsForExplanation

fun <E : Any> collectAssertionsForExplanation(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.