org.test4j.hamcrest.matcher.string
类 StringMatcher

java.lang.Object
  继承者 ext.test4j.hamcrest.BaseMatcher<T>
      继承者 ext.test4j.hamcrest.TypeSafeMatcher<String>
          继承者 org.test4j.hamcrest.matcher.string.StringMatcher
所有已实现的接口:
Matcher<String>, SelfDescribing
直接已知子类:
StringEndWithMatcher, StringEqualMatcher, StringStartWithMatcher

public abstract class StringMatcher
extends TypeSafeMatcher<String>


字段摘要
protected  String expected
           
protected  StringMode[] modes
           
 
构造方法摘要
StringMatcher(String expected)
           
 
方法摘要
 void describeTo(Description description)
           
protected abstract  boolean match(String expected, String actual)
           
protected  boolean matchesSafely(String item)
           
protected abstract  String relationship()
           
 void setStringModes(StringMode... modes)
           
 
从类 ext.test4j.hamcrest.TypeSafeMatcher 继承的方法
describeMismatch, describeMismatchSafely, 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
 

字段详细信息

modes

protected StringMode[] modes

expected

protected String expected
构造方法详细信息

StringMatcher

public StringMatcher(String expected)
方法详细信息

setStringModes

public void setStringModes(StringMode... modes)

matchesSafely

protected boolean matchesSafely(String item)
指定者:
TypeSafeMatcher<String> 中的 matchesSafely

match

protected abstract boolean match(String expected,
                                 String actual)

relationship

protected abstract String relationship()

describeTo

public void describeTo(Description description)


Copyright © 2013. All rights reserved.