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

throwIfNoAssertionIsCollected

val throwIfNoAssertionIsCollected: Collector

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

Use doNotThrowIfNoAssertionIsCollected if such use cases should be ignored (no exception should be thrown).