public abstract class SubstringMatcher extends TypeSafeMatcher<java.lang.String>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
substring |
Modifier | Constructor and Description |
---|---|
protected |
SubstringMatcher(java.lang.String relationship,
boolean ignoringCase,
java.lang.String substring) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
converted(java.lang.String arg) |
void |
describeMismatchSafely(java.lang.String item,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
protected abstract boolean |
evalSubstringOf(java.lang.String string) |
boolean |
matchesSafely(java.lang.String item)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
protected SubstringMatcher(java.lang.String relationship, boolean ignoringCase, java.lang.String substring)
public boolean matchesSafely(java.lang.String item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<java.lang.String>
public void describeMismatchSafely(java.lang.String item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<java.lang.String>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.protected java.lang.String converted(java.lang.String arg)
protected abstract boolean evalSubstringOf(java.lang.String string)