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

ExplainingAssertionCollectorOption

object ExplainingAssertionCollectorOption (source)

Delegates inter alia to the implementation of ThrowingAssertionCollectorForExplanation and NonThrowingAssertionCollectorForExplanation.

Properties

doNotThrowIfNoAssertionIsCollected

val doNotThrowIfNoAssertionIsCollected: NonThrowingAssertionCollectorForExplanation

Choosing this option will ignore use cases where not a single Assertion was collected.

throwIfNoAssertionIsCollected

val throwIfNoAssertionIsCollected: ThrowingAssertionCollectorForExplanation

Choosing this option causes the AssertionCollector to throw an IllegalArgumentException in case not a single Assertion was collected.