public class OrderingComparison<T extends Comparable<T>> extends TypeSafeMatcher<T>
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
comparesEqualTo(T value)
Is value = expected?
|
void |
describeMismatchSafely(T actual,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
static <T extends Comparable<T>> |
greaterThan(T value)
Is value > expected?
|
static <T extends Comparable<T>> |
greaterThanOrEqualTo(T value)
Is value >= expected?
|
static <T extends Comparable<T>> |
lessThan(T value)
Is value < expected?
|
static <T extends Comparable<T>> |
lessThanOrEqualTo(T value)
Is value <= expected?
|
boolean |
matchesSafely(T actual)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(T actual)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<T extends Comparable<T>>public void describeMismatchSafely(T actual, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<T extends Comparable<T>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <T extends Comparable<T>> Matcher<? super T> comparesEqualTo(T value)
public static <T extends Comparable<T>> Matcher<? super T> greaterThan(T value)
public static <T extends Comparable<T>> Matcher<? super T> greaterThanOrEqualTo(T value)
public static <T extends Comparable<T>> Matcher<? super T> lessThan(T value)
public static <T extends Comparable<T>> Matcher<? super T> lessThanOrEqualTo(T value)
Copyright © 2016. All rights reserved.