interface MapAssertions
(source)
Defines the minimum set of assertion functions and builders applicable to Map, which an implementation of the domain of Atrium has to provide.
abstract fun <K, V> contains(plant: AssertionPlant<Map<out K, V>>, keyValuePairs: List<<ERROR CLASS><K, V>>): Assertion |
|
abstract fun <K> containsKey(plant: AssertionPlant<Map<out K, *>>, key: K): Assertion |
|
abstract fun <K, V : Any> containsKeyWithValueAssertions(plant: AssertionPlant<Map<out K, V?>>, keyValues: List<<ERROR CLASS><K, Assert<V>.() -> Unit>>): Assertion |
|
abstract fun <K> containsNotKey(plant: AssertionPlant<Map<out K, *>>, key: K): Assertion |
|
abstract fun <K, V : Any> getExisting(plant: AssertionPlant<Map<out K, V>>, key: K): AssertionPlant<V> abstract fun <K, V : Any> getExisting(plant: AssertionPlant<Map<out K, V>>, key: K, assertionCreator: AssertionPlant<V>.() -> Unit): Assertion |
|
abstract fun <K, V> getExistingNullable(plant: AssertionPlant<Map<out K, V>>, key: K): AssertionPlantNullable<V> abstract fun <K, V> getExistingNullable(plant: AssertionPlant<Map<out K, V>>, key: K, assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assertion |
|
abstract fun hasSize(plant: AssertionPlant<Map<*, *>>, size: Int): Assertion |
|
abstract fun isEmpty(plant: AssertionPlant<Map<*, *>>): Assertion |
|
abstract fun isNotEmpty(plant: AssertionPlant<Map<*, *>>): Assertion |
|
abstract fun <K> keys(plant: AssertionPlant<Map<out K, *>>, assertionCreator: AssertionPlant<Set<K>>.() -> Unit): Assertion |
|
abstract fun <V> values(plant: AssertionPlant<Map<*, V>>, assertionCreator: AssertionPlant<Collection<V>>.() -> Unit): Assertion |
object MapAssertionsBuilder : MapAssertions
Delegates inter alia to the implementation of MapAssertions. In detail, it implements MapAssertions by delegating to mapAssertions which in turn delegates to the implementation via loadSingleService. |