public class IsMapContainingKey<K> extends MapTypeSafeMatcher<Map<K,?>>
| Constructor and Description |
|---|
IsMapContainingKey(org.hamcrest.Matcher<K> keyMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <K> org.hamcrest.Matcher<Map<K,?>> |
hasKey(K key) |
static <K> org.hamcrest.Matcher<Map<K,?>> |
hasKey(org.hamcrest.Matcher<K> keyMatcher) |
boolean |
matchesSafely(Map<K,?> item) |
matchespublic IsMapContainingKey(org.hamcrest.Matcher<K> keyMatcher)
public boolean matchesSafely(Map<K,?> item)
matchesSafely in class MapTypeSafeMatcher<Map<K,?>>public void describeTo(org.hamcrest.Description description)
public static <K> org.hamcrest.Matcher<Map<K,?>> hasKey(K key)
public static <K> org.hamcrest.Matcher<Map<K,?>> hasKey(org.hamcrest.Matcher<K> keyMatcher)
Copyright © 2017. All rights reserved.