public class MatchesPattern extends TypeSafeMatcher<String>
| Constructor and Description |
|---|
MatchesPattern(Pattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
static Matcher<String> |
matchesPattern(Pattern pattern)
|
static Matcher<String> |
matchesPattern(String regex)
|
protected boolean |
matchesSafely(String item)
Subclasses should implement this.
|
describeMismatch, describeMismatchSafely, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringpublic MatchesPattern(Pattern pattern)
protected boolean matchesSafely(String item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<String>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.Copyright © 2021. All rights reserved.