public abstract class SubstringMatcher extends TypeSafeMatcher<String>
Modifier | Constructor and Description |
---|---|
protected |
SubstringMatcher(String relationship,
boolean ignoringCase,
String substring) |
Modifier and Type | Method and Description |
---|---|
protected String |
converted(String arg) |
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.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
protected final String substring
public boolean matchesSafely(String item)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<String>
public void describeMismatchSafely(String item, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<String>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.protected abstract boolean evalSubstringOf(String string)
Copyright © 2020. All rights reserved.