com.madgag.hamcrest
Class IsMap<K,V>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Map<K,V>>
com.madgag.hamcrest.IsMap<K,V>
- All Implemented Interfaces:
- org.hamcrest.Matcher<Map<K,V>>, org.hamcrest.SelfDescribing
public class IsMap<K,V>
- extends org.hamcrest.TypeSafeMatcher<Map<K,V>>
|
Method Summary |
IsMap<K,V> |
and(K key,
org.hamcrest.Matcher<V> valueConstraint)
|
IsMap<K,V> |
and(K key,
V value)
|
IsMap<K,V> |
and(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
|
static
|
containing(K key,
V value)
|
static
|
containing(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
|
static
|
containingOnly(K key,
org.hamcrest.Matcher<V> valueConstraint)
|
static
|
containingOnly(K key,
V value)
|
static
|
containingOnly(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
|
void |
describeTo(org.hamcrest.Description description)
|
boolean |
matchesSafely(Map<K,V> map)
|
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, describeMismatchSafely, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
containing
public static <K,V> IsMap<K,V> containing(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
containing
public static <K,V> IsMap<K,V> containing(K key,
V value)
containingOnly
public static <K,V> IsMap<K,V> containingOnly(K key,
org.hamcrest.Matcher<V> valueConstraint)
containingOnly
public static <K,V> IsMap<K,V> containingOnly(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
containingOnly
public static <K,V> IsMap<K,V> containingOnly(K key,
V value)
and
public IsMap<K,V> and(org.hamcrest.Matcher<K> keyConstraint,
org.hamcrest.Matcher<V> valueConstraint)
and
public IsMap<K,V> and(K key,
org.hamcrest.Matcher<V> valueConstraint)
and
public IsMap<K,V> and(K key,
V value)
matchesSafely
public boolean matchesSafely(Map<K,V> map)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Map<K,V>>
describeTo
public void describeTo(org.hamcrest.Description description)
Copyright © 2011. All Rights Reserved.