public abstract class CompareTo<T extends Comparable<T>> extends ArgumentMatcher<T>
| Constructor and Description |
|---|
CompareTo(Comparable<T> value) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
protected abstract String |
getName() |
boolean |
matches(Object actual)
Returns whether this matcher accepts the given argument.
|
protected abstract boolean |
matchResult(int result) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic CompareTo(Comparable<T> value)
public boolean matches(Object actual)
ArgumentMatcherThe method should never assert if the argument doesn't match. It should only return false.
matches in interface Matcher<T extends Comparable<T>>matches in class ArgumentMatcher<T extends Comparable<T>>actual - the argumentBaseMatcherpublic void describeTo(Description description)
SelfDescribingdescribeTo in interface SelfDescribingdescribeTo in class ArgumentMatcher<T extends Comparable<T>>description - The description to be built or appended to.protected abstract String getName()
protected abstract boolean matchResult(int result)
Copyright © 2018. All rights reserved.