Package org.opensearch.test.hamcrest
Class OpenSearchMatchers.SearchHitHasScoreMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<org.opensearch.search.SearchHit>
org.opensearch.test.hamcrest.OpenSearchMatchers.SearchHitHasScoreMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<org.opensearch.search.SearchHit>,org.hamcrest.SelfDescribing
- Enclosing class:
- OpenSearchMatchers
public static class OpenSearchMatchers.SearchHitHasScoreMatcher
extends org.hamcrest.TypeSafeMatcher<org.opensearch.search.SearchHit>
-
Constructor Summary
Constructors Constructor Description SearchHitHasScoreMatcher(float score) -
Method Summary
Modifier and Type Method Description voiddescribeMismatchSafely(org.opensearch.search.SearchHit searchHit, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)protected booleanmatchesSafely(org.opensearch.search.SearchHit searchHit)
-
Constructor Details
-
SearchHitHasScoreMatcher
public SearchHitHasScoreMatcher(float score)
-
-
Method Details
-
matchesSafely
protected boolean matchesSafely(org.opensearch.search.SearchHit searchHit)- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<org.opensearch.search.SearchHit>
-
describeMismatchSafely
public void describeMismatchSafely(org.opensearch.search.SearchHit searchHit, org.hamcrest.Description mismatchDescription)- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<org.opensearch.search.SearchHit>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-