interface MapAssertions
Collection of assertion functions and builders which are applicable to subjects with a Map type.
abstract fun <K, V, T : Map<out K, V>> contains(container: AssertionContainer<T>, keyValuePairs: List<Pair<K, V>>): Assertion |
|
abstract fun <K, T : Map<out K, *>> containsKey(container: AssertionContainer<T>, key: K): Assertion |
|
abstract fun <K, V : Any, T : Map<out K, V?>> containsKeyWithValueAssertions(container: AssertionContainer<T>, valueType: KClass<V>, keyValues: List<Pair<K, (Expect<V>.() -> Unit)?>>): Assertion |
|
abstract fun <K, T : Map<out K, *>> containsNotKey(container: AssertionContainer<T>, key: K): Assertion |
|
abstract fun <K, V, T : Map<out K, V>> getExisting(container: AssertionContainer<T>, key: K): FeatureExtractorBuilder.ExecutionStep<T, V> |
|
abstract fun <T : Map<*, *>> isEmpty(container: AssertionContainer<T>): Assertion |
|
abstract fun <T : Map<*, *>> isNotEmpty(container: AssertionContainer<T>): Assertion |
|
abstract fun <T : Map<*, *>> size(container: AssertionContainer<T>): FeatureExtractorBuilder.ExecutionStep<T, Int> |
class DefaultMapAssertions : MapAssertions
Defines the minimum set of assertion functions and builders applicable to Map, which an implementation of the domain of Atrium has to provide. |