doc / ch.tutteli.atrium.domain.creating / MapEntryAssertions

MapEntryAssertions

interface MapEntryAssertions (source)

Defines the minimum set of assertion functions and builders applicable to Map, which an implementation of the domain of Atrium has to provide.

Functions

isKeyValue

abstract fun <K, V, T : Entry<K, V>> isKeyValue(expect: Expect<T>, key: K, value: V): Assertion
abstract fun <K : Any, V : Any> isKeyValue(plant: AssertionPlant<Entry<K, V>>, key: K, value: V): Assertion

key

abstract fun <K, T : Entry<K, *>> key(expect: Expect<T>): ExtractedFeaturePostStep<T, K>
abstract fun <K : Any> key(plant: AssertionPlant<Entry<K, *>>, assertionCreator: AssertionPlant<K>.() -> Unit): Assertion

nullableKey

abstract fun <K> nullableKey(plant: AssertionPlant<Entry<K, *>>, assertionCreator: AssertionPlantNullable<K>.() -> Unit): Assertion

nullableValue

abstract fun <V> nullableValue(plant: AssertionPlant<Entry<*, V>>, assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assertion

value

abstract fun <V, T : Entry<*, V>> value(expect: Expect<T>): ExtractedFeaturePostStep<T, V>
abstract fun <V : Any> value(plant: AssertionPlant<Entry<*, V>>, assertionCreator: AssertionPlant<V>.() -> Unit): Assertion

Inheritors

MapEntryAssertionsBuilder

object MapEntryAssertionsBuilder : MapEntryAssertions

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.