Modifier and Type | Method and Description |
---|---|
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) |
public static <K,V> org.hamcrest.Matcher<Map<K,V>> isSingletonMap(K expectedKey, V expectedValue)
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-2015 Atlassian. All Rights Reserved.