atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / MapEntryAssertionsBuilder

MapEntryAssertionsBuilder

object MapEntryAssertionsBuilder (source)

Delegates inter alia to the implementation of MapEntryAssertions. In detail, it implements MapEntryAssertions by delegating to mapEntryAssertions which in turn delegates to the implementation via loadSingleService.

Functions

isKeyValue

fun <K, V, T : Entry<K, V>> isKeyValue(expect: <ERROR CLASS><T>, key: K, value: V): <ERROR CLASS>
fun <K : Any, V : Any> isKeyValue(plant: <ERROR CLASS><Entry<K, V>>, key: K, value: V): <ERROR CLASS>

key

fun <K, T : Entry<K, *>> key(expect: <ERROR CLASS><T>): <ERROR CLASS>
fun <K : Any> key(plant: <ERROR CLASS><Entry<K, *>>, assertionCreator: <ERROR CLASS><K>.() -> Unit): <ERROR CLASS>

nullableKey

fun <K> nullableKey(plant: <ERROR CLASS><Entry<K, *>>, assertionCreator: <ERROR CLASS><K>.() -> Unit): <ERROR CLASS>

nullableValue

fun <V> nullableValue(plant: <ERROR CLASS><Entry<*, V>>, assertionCreator: <ERROR CLASS><V>.() -> Unit): <ERROR CLASS>

value

fun <V, T : Entry<*, V>> value(expect: <ERROR CLASS><T>): <ERROR CLASS>
fun <V : Any> value(plant: <ERROR CLASS><Entry<*, V>>, assertionCreator: <ERROR CLASS><V>.() -> Unit): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.