public class RegexMatcher
extends org.hamcrest.TypeSafeMatcher<java.lang.String>
| Constructor and Description |
|---|
RegexMatcher(java.util.regex.Pattern pattern)
Constructor for matcher that matchers against strings provided regex pattern.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description)
Generate a description of why the matcher has not accepted the item.
|
protected boolean |
matchesSafely(java.lang.String item) |
describeMismatch, describeMismatchSafely, matchespublic RegexMatcher(java.util.regex.Pattern pattern)
pattern - regex patternprotected boolean matchesSafely(java.lang.String item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.String>public void describeTo(org.hamcrest.Description description)
description - The description to be built or appended to.