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

Collector

class Collector

Constructors

<init>

Collector(throwIfNoAssertionIsCollected: Boolean)

Functions

collectAssertionsForExplanation

fun <E : Any> collectAssertionsForExplanation(noSubjectMessage: String, warning: ITranslatable, assertionCreator: IAssertionPlant<E>.() -> Unit, subject: E?): List<IAssertion>

Collects the IAssertion created by assertionCreator and uses the given subject as ICollectingAssertionPlant.subject if not null.