Class IsMapContainingKey<K>
java.lang.Object
org.hamcrest.BaseMatcher<Map<K,?>>
com.jayway.jsonassert.impl.matcher.MapTypeSafeMatcher<Map<K,?>>
com.jayway.jsonassert.impl.matcher.IsMapContainingKey<K>
- All Implemented Interfaces:
org.hamcrest.Matcher<Map<K,
,?>> org.hamcrest.SelfDescribing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 com.jayway.jsonassert.impl.matcher.MapTypeSafeMatcher
matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
Field Details
-
keyMatcher
-
-
Constructor Details
-
IsMapContainingKey
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafely
in classMapTypeSafeMatcher<Map<K,
?>>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
hasKey
-
hasKey
-