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(String[] expectedSubString, StringMode[] modes)
           
 
方法摘要
static StringContainMatcher contains(String sub)
           
 void describeMismatchSafely(String item, Description mismatchDescription)
           
 void describeTo(Description description)
           
protected  boolean matchesSafely(String item)
           
 
从类 ext.test4j.hamcrest.TypeSafeMatcher 继承的方法
describeMismatch, matches
 
从类 ext.test4j.hamcrest.BaseMatcher 继承的方法
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.