doc / ch.tutteli.atrium.api.cc.infix.en_GB.creating.map.get.builders / MapGetNullableOption / assertIt

assertIt

abstract infix fun assertIt(assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assert<T>

Makes the assertion that the Assert.subject contains the previously specified key and that the corresponding nullable value holds all assertions the given assertionCreator might create for it.

Notice, that the corresponding value of the given key can be null even if the key exists as the Map has a nullable value type.

Exceptions

AssertionError - Might throw an AssertionError if a created Assertions (by calling assertionCreator) does not hold.

IllegalArgumentException - in case the given assertionCreator did not create a single assertion.

Return
This plant to support a fluent API.