doc / ch.tutteli.atrium.api.cc.infix.en_GB / values

values

val <K, V> Assert<Map<out K, V>>.values: Assert<Collection<V>>
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

Creates an AssertionPlant for the Assert.subject's property values so that further fluent calls are assertions about it.

Wrap it into Kotlin's apply if you want to make subsequent assertions on the current subject or use the overload which expects an assertionCreatorOrNull lambda where sub assertions are evaluated together (form an assertion group block).

Return
The newly created AssertionPlant.

infix fun <K, V, T : Map<out K, V>> Assert<T>.values(assertionCreator: Assert<Collection<V>>.() -> Unit): AssertionPlant<T>
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

Makes the assertion that the Assert.subject's property values holds all assertions the given assertionCreator might create.

Exceptions

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

Return
This plant to support a fluent API.