public abstract class SubstringMatcher extends TypeSafeMatcher<String>
| Modifier | Constructor and Description |
|---|---|
protected |
SubstringMatcher(String substring) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(String item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
protected abstract boolean |
evalSubstringOf(String string) |
boolean |
matchesSafely(String item)
Subclasses should implement this.
|
protected abstract String |
relationship() |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected final String substring
protected SubstringMatcher(String substring)
public boolean matchesSafely(String item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<String>public void describeMismatchSafely(String item, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<String>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.protected abstract boolean evalSubstringOf(String string)
protected abstract String relationship()
Copyright © 2016. All rights reserved.