atrium-api-fluent-en_GB-jvm / ch.tutteli.atrium.api.fluent.en_GB / asEntries

asEntries

fun <K, V, T : Map<out K, V>> <ERROR CLASS><T>.asEntries(): <ERROR CLASS><Set<Entry<K, V>>> (source)

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

The transformation as such is not reflected in reporting. Use feature { f(it::entries) } if you want to show the transformation in reporting.

Return
The newly created Expect for the transformed subject.

fun <K, V, T : Map<out K, V>> <ERROR CLASS><T>.asEntries(assertionCreator: <ERROR CLASS><Set<Entry<K, V>>>.() -> Unit): <ERROR CLASS><T> (source)

Turns Expect<Map<K, V>> into Expect<Set<Map.Entry<K, V>>> and expects that it holds all assertions the given assertionCreator creates for it.

The transformation as such is not reflected in reporting. Use feature { f(it::entries) } if you want to show the transformation in reporting.

Return
An Expect for the current subject of the assertion.