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

containsOnlyEntriesOf

infix 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 it contains o inAny order but 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.