org.test4j.hamcrest.matcher.mockito
类 CompareTo<T extends Comparable<T>>

java.lang.Object
  继承者 ext.test4j.hamcrest.BaseMatcher<T>
      继承者 org.test4j.hamcrest.matcher.mockito.ArgumentMatcher<T>
          继承者 org.test4j.hamcrest.matcher.mockito.CompareTo<T>
所有已实现的接口:
Matcher<T>, SelfDescribing
直接已知子类:
GreaterOrEqual, GreaterThan, LessOrEqual, LessThan

public abstract class CompareTo<T extends Comparable<T>>
extends ArgumentMatcher<T>


构造方法摘要
CompareTo(Comparable<T> value)
           
 
方法摘要
 void describeTo(Description description)
           
protected abstract  String getName()
           
 boolean matches(Object actual)
          Returns whether this matcher accepts the given argument.
protected abstract  boolean matchResult(int result)
           
 
从类 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
 

构造方法详细信息

CompareTo

public CompareTo(Comparable<T> value)
方法详细信息

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<T extends Comparable<T>> 中的 matches
指定者:
ArgumentMatcher<T extends Comparable<T>> 中的 matches
参数:
actual - the argument
返回:
whether this matcher accepts the given argument.

describeTo

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

getName

protected abstract String getName()

matchResult

protected abstract boolean matchResult(int result)


Copyright © 2013. All rights reserved.