org.mockito.internal.matchers
public abstract class CompareTo<T extends Comparable<T>> extends Object implements ArgumentMatcher<T>, Serializable
| Constructor and Description |
|---|
CompareTo(Comparable<T> value) |
public CompareTo(Comparable<T> value)
public boolean matches(T actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
See the example in the top level javadoc for ArgumentMatcher
matches in interface ArgumentMatcher<T extends Comparable<T>>actual - the argumentprotected abstract String getName()
protected abstract boolean matchResult(int result)