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_, toString
public boolean matchesSafely(T actual)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<T extends Comparable<T>>
public void describeMismatchSafely(T actual, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<T extends Comparable<T>>
public void describeTo(Description description)
SelfDescribing
description
- 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.