public final class StringMatcher
extends Object 
- 
Method Summary
static org.hamcrest.BaseMatcher<String>
期待する文字列で終了することを表明するMatcher実装を返却する。
 
 static org.hamcrest.BaseMatcher<String>
期待する文字列から始まることを表明するMatcher実装を返却する。
 
 
 
 
 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
Method Details
- 
startsWithpublic static org.hamcrest.BaseMatcher<String> startsWith(String expected) 期待する文字列から始まることを表明するMatcher実装を返却する。
 
- Parameters:
- expected- 期待値(null,空文字は許容されない)
- Returns:
- StringMatcher.StartsWithインスタンス
 
- 
endsWithpublic static org.hamcrest.BaseMatcher<String> endsWith(String expected) 期待する文字列で終了することを表明するMatcher実装を返却する。
 
- Parameters:
- expected- 期待値(null,空文字は許容されない)
- Returns:
- StringMatcher.StartsWithインスタンス