Modifier and Type | Class and Description |
---|---|
static class |
MapMatchers.OrderedMapMatcher<K,V>
Matcher that checks that the elements of a Map are in a particular order.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> org.hamcrest.Matcher<Map<K,V>> |
hasEntries(Map<K,V> expectedMap) |
static <K> org.hamcrest.Matcher<Map<? extends K,?>> |
hasKeyThat(org.hamcrest.Matcher<K> keyMatcher) |
static <K,V> org.hamcrest.Matcher<Map<K,V>> |
isMapOf(K key1,
V value1,
K key2,
V value2)
Guava factory style map matcher for a map containing exactly 2 entries matching the arguments.
|
static <K,V> org.hamcrest.Matcher<Map<K,V>> |
isSingletonMap(K expectedKey,
V expectedValue) |
static <K,V> MapMatchers.OrderedMapMatcher<K,V> |
orderedMap(K key1,
V value1)
Matcher that checks that the elements of a Map are in a particular order.
|
static <K,V> MapMatchers.OrderedMapMatcher<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2)
Matcher that checks that the elements of a Map are in a particular order.
|
static <K,V> MapMatchers.OrderedMapMatcher<K,V> |
orderedMap(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
Matcher that checks that the elements of a Map are in a particular order.
|
static <K,V> MapMatchers.OrderedMapMatcher<K,V> |
orderedMap(SortedMap<K,V> map)
Matcher that checks that the elements of a Map are in a particular order.
|
public static <K,V> org.hamcrest.Matcher<Map<K,V>> isSingletonMap(K expectedKey, V expectedValue)
public static <K> org.hamcrest.Matcher<Map<? extends K,?>> hasKeyThat(org.hamcrest.Matcher<K> keyMatcher)
public static <K,V> MapMatchers.OrderedMapMatcher<K,V> orderedMap(SortedMap<K,V> map)
K
- the type of the keys.V
- the type of the values.map
- the map the match against.public static <K,V> MapMatchers.OrderedMapMatcher<K,V> orderedMap(K key1, V value1)
K
- the type of the keys.V
- the type of the values.key1
- the value of the first key.value1
- the value of the second key.public static <K,V> MapMatchers.OrderedMapMatcher<K,V> orderedMap(K key1, V value1, K key2, V value2)
K
- the type of the keys.V
- the type of the values.key1
- the value of the first key.value1
- the value of the first value.key2
- the value of the second key.value2
- the value of the second value.public static <K,V> MapMatchers.OrderedMapMatcher<K,V> orderedMap(K key1, V value1, K key2, V value2, K key3, V value3)
K
- the type of the keys.V
- the type of the values.key1
- the value of the first key.value1
- the value of the first value.key2
- the value of the second key.value2
- the value of the second value.key3
- the value of the third key.value3
- the value of the third value.public static <K,V> org.hamcrest.Matcher<Map<K,V>> isMapOf(K key1, V value1, K key2, V value2)
K
- key typeV
- value typekey1
- key of the first entryvalue1
- value of the first entrykey2
- key of the second entryvalue2
- key of the second entryCopyright © 2002-2018 Atlassian. All Rights Reserved.
View cookie preferences