public class ContainsPattern extends TypesafeQuickMatcherBase<String>
| Constructor and Description |
|---|
ContainsPattern(Pattern p) |
ContainsPattern(Pattern p,
boolean match) |
ContainsPattern(String regex) |
ContainsPattern(String regex,
boolean match) |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<String> |
containsPattern(Pattern p)
Can the given pattern be found in the string?
|
static org.hamcrest.Matcher<String> |
containsPattern(String regex)
Can the given pattern be found in the string?
|
protected void |
describeMismatchSafely(String item,
org.hamcrest.Description mismatch) |
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<String> |
matchesPattern(Pattern p)
Does the pattern match the entire string?
|
static org.hamcrest.Matcher<String> |
matchesPattern(String regex)
Does the pattern match the entire string?
|
protected boolean |
matchesSafely(String item) |
describeMismatch, matchesmatches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic ContainsPattern(Pattern p, boolean match)
public ContainsPattern(Pattern p)
public ContainsPattern(String regex, boolean match)
public ContainsPattern(String regex)
public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(String item)
matchesSafely in class TypesafeQuickMatcherBase<String>protected void describeMismatchSafely(String item, org.hamcrest.Description mismatch)
describeMismatchSafely in class TypesafeQuickMatcherBase<String>public static org.hamcrest.Matcher<String> containsPattern(String regex)
regex - public static org.hamcrest.Matcher<String> containsPattern(Pattern p)
p - public static org.hamcrest.Matcher<String> matchesPattern(String regex)
regex - Copyright © 2013. All Rights Reserved.