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

containsEntriesOf

fun <K, V : Any, T : Map<out K, V?>> Expect<T>.containsEntriesOf(mapLike: MapLike): Expect<T> (source)
Deprecated: Use toContainEntriesOf; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Map) contains the key-value pairs of the given mapLike.

Delegates to contains.inAnyOrder.entriesOf

expect(mapOf(1 to "a")).containsEntriesOf(listOf(1 to "a"))

fails {
    expect(mapOf(1 to "a")).containsEntriesOf(listOf(1 to "b")) // fails because the map does not contain <1,"b">
}

Return
an Expect for the subject of this expectation.