org.hamcrest.text
Class StringEndsWith
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<String>
org.hamcrest.text.SubstringMatcher
org.hamcrest.text.StringEndsWith
- All Implemented Interfaces:
- Matcher<String>, SelfDescribing
public class StringEndsWith
- extends SubstringMatcher
Tests if the argument is a string that contains a substring.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringEndsWith
public StringEndsWith(String substring)
evalSubstringOf
protected boolean evalSubstringOf(String s)
- Specified by:
evalSubstringOf in class SubstringMatcher
relationship
protected String relationship()
- Specified by:
relationship in class SubstringMatcher
endsWith
public static Matcher<String> endsWith(String substring)