Class IsMapContainingKey<K>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<M>
-
- dev.aherscu.qa.testing.utils.assertions.impl.matcher.MapTypeSafeMatcher<Map<K,?>>
-
- dev.aherscu.qa.testing.utils.assertions.impl.matcher.IsMapContainingKey<K>
-
- All Implemented Interfaces:
org.hamcrest.Matcher<Map<K,?>>
,org.hamcrest.SelfDescribing
public class IsMapContainingKey<K> extends MapTypeSafeMatcher<Map<K,?>>
-
-
Constructor Summary
Constructors Constructor Description IsMapContainingKey(org.hamcrest.Matcher<K> keyMatcher)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class dev.aherscu.qa.testing.utils.assertions.impl.matcher.MapTypeSafeMatcher
matches
-
-
-
-
Constructor Detail
-
IsMapContainingKey
public IsMapContainingKey(org.hamcrest.Matcher<K> keyMatcher)
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(Map<K,?> item)
- Specified by:
matchesSafely
in classMapTypeSafeMatcher<Map<K,?>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
hasKey
public static <K> org.hamcrest.Matcher<Map<K,?>> hasKey(K key)
-
hasKey
public static <K> org.hamcrest.Matcher<Map<K,?>> hasKey(org.hamcrest.Matcher<K> keyMatcher)
-
-