package org.hamcrest.number;
import org.hamcrest.Matcher;
import org.hamcrest.comparator.ComparatorMatcherBuilder;
public class OrderingComparison {
private OrderingComparison() {
}
/**
* Creates a matcher of {@link Comparable} object that matches when the examined object is
* equal to the specified value, as reported by the compareTo
method of the
* examined object.
* For example:
*
assertThat(1, comparesEqualTo(1))* * @param value the value which, when passed to the compareTo method of the examined object, should return zero */ public static
compareTo
method of the
* examined object.
* For example:
* assertThat(2, greaterThan(1))* * @param value the value which, when passed to the compareTo method of the examined object, should return greater * than zero */ public static
compareTo
method
* of the examined object.
* For example:
* assertThat(1, greaterThanOrEqualTo(1))* * @param value the value which, when passed to the compareTo method of the examined object, should return greater * than or equal to zero */ public static
compareTo
method of the
* examined object.
* For example:
* assertThat(1, lessThan(2))* * @param value the value which, when passed to the compareTo method of the examined object, should return less * than zero */ public static
compareTo
method
* of the examined object.
* For example:
* assertThat(1, lessThanOrEqualTo(1))* * @param value the value which, when passed to the compareTo method of the examined object, should return less * than or equal to zero */ public static