doc / ch.tutteli.atrium.api.cc.de_CH / getExistierend

getExistierend

fun <K, V : Any, T : Map<out K, V>> Assert<T>.getExistierend(key: K): Assert<V>
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

Makes the assertion that the Assert.subject contains the given key, creates a feature assertion plant for corresponding value and returns the newly created plant.

Exceptions

AssertionError - Might throw an AssertionError if the given key does not exist.

Return
The newly created plant for the feature

fun <K, V : Any, T : Map<out K, V>> Assert<T>.getExistierend(key: K, assertionCreator: Assert<V>.() -> Unit): AssertionPlant<T>
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

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

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.