public class MapKt
| Modifier and Type | Method and Description |
|---|---|
static void |
hasSameSizeAs(Assert<? extends java.util.Map<?,?>> $receiver,
java.util.Map<?,?> other)
Asserts the map has the same size as the expected map.
|
static void |
hasSize(Assert<? extends java.util.Map<?,?>> $receiver,
int size)
Asserts the collection has the expected size.
|
static void |
isEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is empty.
|
static void |
isNotEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is not empty.
|
static void |
isNullOrEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is null or empty.
|
static <K,V> void |
key(Assert<? extends java.util.Map<K,? extends V>> $receiver,
K key,
kotlin.jvm.functions.Function1<? super assertk.Assert<? extends V>,kotlin.Unit> f)
Deprecated.
|
static <K,V> Assert<V> |
key(Assert<? extends java.util.Map<K,? extends V>> $receiver,
K key)
Returns an assert that asserts on the value at the given key in the map.
|
static <K,V> void |
mapContains(Assert<? extends java.util.Map<K,? extends V>> $receiver,
K key,
V value)
Asserts the map contains the expected key-value pair.
|
static <K,V> void |
mapContainsAll(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair elements)
Asserts the map contains all the expected elements. The map may also contain additional elements.
|
static <K,V> void |
mapContainsExactly(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair elements)
Deprecated.
|
static <K,V> void |
mapContainsNone(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair elements)
Asserts the map does not contain any of the expected elements.
|
static <K,V> void |
mapContainsOnly(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair elements)
Asserts the map contains only the expected elements. There must not be any extra elements.
|
static <K,V> void |
mapContainsPair(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair<? extends K,? extends V> element)
Asserts the map contains the expected key-value pair.
|
static <K,V> void |
mapDoesNotContain(Assert<? extends java.util.Map<K,? extends V>> $receiver,
K key,
V value)
Asserts the map does not contain the expected key-value pair.
|
static <K,V> void |
mapDoesNotContainPair(Assert<? extends java.util.Map<K,? extends V>> $receiver,
kotlin.Pair<? extends K,? extends V> element)
Asserts the map does not contain the expected key-value pair.
|
static Assert<java.lang.Integer> |
size(Assert<? extends java.util.Map<?,?>> $receiver)
Returns an assert on the Maps's size.
|
public static Assert<java.lang.Integer> size(Assert<? extends java.util.Map<?,?>> $receiver)
Returns an assert on the Maps's size.
public static void isEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is empty.
public static void isNotEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is not empty.
PrimativeArrayKt.byteArrayIsEmptypublic static void isNullOrEmpty(Assert<? extends java.util.Map<?,?>> $receiver)
Asserts the collection is null or empty.
PrimativeArrayKt.byteArrayIsEmptypublic static void hasSize(Assert<? extends java.util.Map<?,?>> $receiver, int size)
Asserts the collection has the expected size.
public static void hasSameSizeAs(Assert<? extends java.util.Map<?,?>> $receiver, java.util.Map<?,?> other)
Asserts the map has the same size as the expected map.
public static <K,V> void mapContains(Assert<? extends java.util.Map<K,? extends V>> $receiver, K key, V value)
Asserts the map contains the expected key-value pair.
PrimativeArrayKt.byteArrayDoesNotContainpublic static <K,V> void mapContainsPair(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair<? extends K,? extends V> element)
Asserts the map contains the expected key-value pair.
PrimativeArrayKt.byteArrayDoesNotContainpublic static <K,V> void mapContainsAll(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair elements)
Asserts the map contains all the expected elements. The map may also contain additional elements.
public static <K,V> void mapDoesNotContain(Assert<? extends java.util.Map<K,? extends V>> $receiver, K key, V value)
Asserts the map does not contain the expected key-value pair.
PrimativeArrayKt.byteArrayContainspublic static <K,V> void mapDoesNotContainPair(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair<? extends K,? extends V> element)
Asserts the map does not contain the expected key-value pair.
PrimativeArrayKt.byteArrayContainspublic static <K,V> void mapContainsNone(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair elements)
Asserts the map does not contain any of the expected elements.
PrimativeArrayKt.byteArrayContainsAllpublic static <K,V> void mapContainsExactly(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair elements)
Asserts the map contains exactly the expected elements. There must not be any extra elements.
PrimativeArrayKt.byteArrayContainsAllpublic static <K,V> void mapContainsOnly(Assert<? extends java.util.Map<K,? extends V>> $receiver, kotlin.Pair elements)
Asserts the map contains only the expected elements. There must not be any extra elements.
PrimativeArrayKt.byteArrayContainsAllpublic static <K,V> void key(Assert<? extends java.util.Map<K,? extends V>> $receiver, K key, kotlin.jvm.functions.Function1<? super assertk.Assert<? extends V>,kotlin.Unit> f)
Returns an assert that asserts on the value at the given key in the map.
assertThat(mapOf("key" to "value")).key("key") { it.isEqualTo("value") }