Package org.elasticsearch.test.hamcrest
Class WellKnownBinaryBytesRefMatcher<G extends org.elasticsearch.geometry.Geometry>
java.lang.Object
org.hamcrest.BaseMatcher<org.apache.lucene.util.BytesRef>
org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
org.elasticsearch.test.hamcrest.WellKnownBinaryBytesRefMatcher<G>
- All Implemented Interfaces:
org.hamcrest.Matcher<org.apache.lucene.util.BytesRef>
,org.hamcrest.SelfDescribing
public class WellKnownBinaryBytesRefMatcher<G extends org.elasticsearch.geometry.Geometry>
extends org.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
A wrapper for matching geometries encoded as WKB in a BytesRef.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
describeMismatchSafely
(org.apache.lucene.util.BytesRef bytesRef, org.hamcrest.Description description) void
describeTo
(org.hamcrest.Description description) static <G extends org.elasticsearch.geometry.Geometry>
org.hamcrest.Matcher<org.apache.lucene.util.BytesRef> encodes
(org.hamcrest.TypeSafeMatcher<G> matcher) boolean
matchesSafely
(org.apache.lucene.util.BytesRef bytesRef) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
WellKnownBinaryBytesRefMatcher
-
-
Method Details
-
encodes
public static <G extends org.elasticsearch.geometry.Geometry> org.hamcrest.Matcher<org.apache.lucene.util.BytesRef> encodes(org.hamcrest.TypeSafeMatcher<G> matcher) -
matchesSafely
public boolean matchesSafely(org.apache.lucene.util.BytesRef bytesRef) - Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
-
describeMismatchSafely
public void describeMismatchSafely(org.apache.lucene.util.BytesRef bytesRef, org.hamcrest.Description description) - Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<org.apache.lucene.util.BytesRef>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-