| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<java.lang.String>
org.hamcrest.core.SubstringMatcher
org.hamcrest.core.StringEndsWith
public class StringEndsWith
Tests if the argument is a string that contains a substring.
| Field Summary | 
|---|
| Fields inherited from class org.hamcrest.core.SubstringMatcher | 
|---|
| substring | 
| Constructor Summary | |
|---|---|
| StringEndsWith(java.lang.String substring) | |
| Method Summary | |
|---|---|
| static Matcher<java.lang.String> | endsWith(java.lang.String suffix)Creates a matcher that matches if the examined Stringends with the specifiedString. | 
| protected  boolean | evalSubstringOf(java.lang.String s) | 
| protected  java.lang.String | relationship() | 
| Methods inherited from class org.hamcrest.core.SubstringMatcher | 
|---|
| describeMismatchSafely, describeTo, matchesSafely | 
| Methods inherited from class org.hamcrest.TypeSafeMatcher | 
|---|
| describeMismatch, matches | 
| Methods inherited from class org.hamcrest.BaseMatcher | 
|---|
| _dont_implement_Matcher___instead_extend_BaseMatcher_, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public StringEndsWith(java.lang.String substring)
| Method Detail | 
|---|
protected boolean evalSubstringOf(java.lang.String s)
evalSubstringOf in class SubstringMatcherprotected java.lang.String relationship()
relationship in class SubstringMatcherpublic static Matcher<java.lang.String> endsWith(java.lang.String suffix)
String ends with the specified
 String.
 
 For example:
 assertThat("myStringOfNote", endsWith("Note"))
suffix - the substring that the returned matcher will expect at the end of any examined string| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||