Package org.elasticsearch.test.hamcrest
Class CollectionMatchers.ImmutableOpenMapHasKeyMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?>>
org.elasticsearch.test.hamcrest.CollectionMatchers.ImmutableOpenMapHasKeyMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?>>
,org.hamcrest.SelfDescribing
- Enclosing class:
- CollectionMatchers
public static class CollectionMatchers.ImmutableOpenMapHasKeyMatcher
extends org.hamcrest.TypeSafeMatcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?>>
-
Constructor Summary
Constructors Constructor Description ImmutableOpenMapHasKeyMatcher(java.lang.String key)
-
Method Summary
Modifier and Type Method Description void
describeMismatchSafely(org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?> map, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?> item)
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ImmutableOpenMapHasKeyMatcher
public ImmutableOpenMapHasKeyMatcher(java.lang.String key)
-
-
Method Details
-
matchesSafely
protected boolean matchesSafely(org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?> item)- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?>>
-
describeMismatchSafely
public void describeMismatchSafely(org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?> map, org.hamcrest.Description mismatchDescription)- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<org.elasticsearch.common.collect.ImmutableOpenMap<java.lang.String,?>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-