fun <K : Any, V : Any> Assert<Entry<K, V>>.istKeyValue(key: K, value: V): Assert<Entry<K, V>>
(source)Makes the assertion that the Assert.subject's Map.Entry.key is (equal to) the given key and Map.Entry.value is value.
Kind of a shortcut for this.key.ist(key).und.value.ist(value)
but should be evaluated in
an assertion group block -- which has the effect that the assertion about the value is still evaluated even
if the assertion about the key fails. Moreover, it might be that reporting differs compared to using the long form.
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.