doc / ch.tutteli.atrium.api.cc.en_GB / asEntries

asEntries

fun <K, V> Assert<Map<out K, V>>.asEntries(): Assert<Set<Entry<K, V>>>
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.9.0#migration for migration hints and scripts.

Turns Assert<Map<K, V>> into Assert<Set<Map.Entry<K, V>>>.

The transformation as such is not reflected in reporting. Use property(subject::entries) if you want to show the transformation in reporting.

Return
The newly created AssertionPlant for the transformed subject.

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

Turns Assert<Map<K, V>> into Assert<Set<Map.Entry<K, V>>> and makes the assertion that the assertions the given assertionCreator might create hold.

The transformation as such is not reflected in reporting. Use property(subject::entries) if you want to show the transformation in reporting.

Return
The newly created AssertionPlant for the transformed subject.