Package org.elasticsearch.test.hamcrest
Class RegexMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<String>
org.elasticsearch.test.hamcrest.RegexMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<String>
,org.hamcrest.SelfDescribing
Matcher that supports regular expression and allows to provide optional flags
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static RegexMatcher
static RegexMatcher
protected boolean
matchesSafely
(String item) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
RegexMatcher
-
RegexMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<String>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
matches
-
matches
-