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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description)static RegexMatcherstatic RegexMatcherprotected booleanmatchesSafely(String item)Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
RegexMatcher
-
RegexMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<String>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
matches
-
matches
-