doc / ch.tutteli.atrium.api.fluent.en_GB / containsOnlyEntriesOf

containsOnlyEntriesOf

fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsOnlyEntriesOf(mapLike: MapLike): Expect<T>

Expects that the subject of the assertion (a Map) contains only (in any order) the key-value pairs of the given mapLike.

Delegates to contains.inAnyOrder.only.entriesOf

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
An Expect for the current subject of the assertion.