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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
startsWith
public static org.hamcrest.BaseMatcher<String> startsWith(String expected)
期待する文字列から始まることを表明するMatcher実装を返却する。
- Parameters:
expected - 期待値(null,空文字は許容されない)
- Returns:
StringMatcher.StartsWithインスタンス
-
endsWith
public static org.hamcrest.BaseMatcher<String> endsWith(String expected)
期待する文字列で終了することを表明するMatcher実装を返却する。
- Parameters:
expected - 期待値(null,空文字は許容されない)
- Returns:
StringMatcher.StartsWithインスタンス