org.test4j.hamcrest.matcher.mockito
类 Matches

java.lang.Object
  继承者 ext.test4j.hamcrest.BaseMatcher<T>
      继承者 org.test4j.hamcrest.matcher.mockito.ArgumentMatcher<Object>
          继承者 org.test4j.hamcrest.matcher.mockito.Matches
所有已实现的接口:
Matcher<Object>, SelfDescribing, Serializable

public class Matches
extends ArgumentMatcher<Object>
implements Serializable

另请参见:
序列化表格

构造方法摘要
Matches(String regex)
           
 
方法摘要
 void describeTo(Description description)
           
 boolean matches(Object actual)
          Returns whether this matcher accepts the given argument.
 
从类 ext.test4j.hamcrest.BaseMatcher 继承的方法
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Matches

public Matches(String regex)
方法详细信息

matches

public boolean matches(Object actual)
从类 ArgumentMatcher 复制的描述
Returns whether this matcher accepts the given argument.

The method should never assert if the argument doesn't match. It should only return false.

指定者:
接口 Matcher<Object> 中的 matches
指定者:
ArgumentMatcher<Object> 中的 matches
参数:
actual - the argument
返回:
whether this matcher accepts the given argument.

describeTo

public void describeTo(Description description)
指定者:
接口 SelfDescribing 中的 describeTo
覆盖:
ArgumentMatcher<Object> 中的 describeTo


Copyright © 2013. All rights reserved.