Package org.elasticsearch.test.hamcrest
Class ElasticsearchMatchers.SearchHitHasIdMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<SearchHit>
-
- org.elasticsearch.test.hamcrest.ElasticsearchMatchers.SearchHitHasIdMatcher
-
- All Implemented Interfaces:
org.hamcrest.Matcher<SearchHit>
,org.hamcrest.SelfDescribing
- Enclosing class:
- ElasticsearchMatchers
public static class ElasticsearchMatchers.SearchHitHasIdMatcher extends org.hamcrest.TypeSafeMatcher<SearchHit>
-
-
Constructor Summary
Constructors Constructor Description SearchHitHasIdMatcher(java.lang.String id)
-
Method Summary
Modifier and Type Method Description void
describeMismatchSafely(SearchHit searchHit, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(SearchHit searchHit)
-
-
-
Method Detail
-
matchesSafely
protected boolean matchesSafely(SearchHit searchHit)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<SearchHit>
-
describeMismatchSafely
public void describeMismatchSafely(SearchHit searchHit, org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<SearchHit>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
-