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, toString
public MatchesPattern(Pattern pattern)
protected boolean matchesSafely(String item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<String>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2021. All rights reserved.