org.test4j.hamcrest.matcher.string
类 StringContainMatcher
java.lang.Object
ext.test4j.hamcrest.BaseMatcher<T>
ext.test4j.hamcrest.TypeSafeMatcher<String>
org.test4j.hamcrest.matcher.string.StringContainMatcher
- 所有已实现的接口:
- Matcher<String>, SelfDescribing
public class StringContainMatcher
- extends TypeSafeMatcher<String>
经过模式处理后,判断一个字符串是否包含另外一个字符串
- 作者:
- darui.wudr
StringContainMatcher
public StringContainMatcher(String[] expectedSubString,
StringMode[] modes)
describeMismatchSafely
public void describeMismatchSafely(String item,
Description mismatchDescription)
- 覆盖:
- 类
TypeSafeMatcher<String> 中的 describeMismatchSafely
describeTo
public void describeTo(Description description)
matchesSafely
protected boolean matchesSafely(String item)
- 指定者:
- 类
TypeSafeMatcher<String> 中的 matchesSafely
contains
public static StringContainMatcher contains(String sub)
Copyright © 2013. All rights reserved.