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

ExplainingAssertionCollectorOption

object ExplainingAssertionCollectorOption
Deprecated: Switch from Assert to Expect and use ExpectImpl.collector.collectForComposition; will be removed with 1.0.0

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.