| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final int | |
| private final T | |
| private static final int | |
| private static final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static <T extends Comparable | comparesEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return zero value)Creates a matcher of |
| public void | describeMismatchSafely(T actual, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public static <T extends Comparable | greaterThan(T
the value which, when passed to the compareTo method of the examined object, should return greater
than zero value)Creates a matcher of |
| public static <T extends Comparable | greaterThanOrEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return greater
than or equal to zero value)Creates a matcher of |
| public static <T extends Comparable | lessThan(T
the value which, when passed to the compareTo method of the examined object, should return less
than zero value)Creates a matcher of |
| public static <T extends Comparable | lessThanOrEqualTo(T
the value which, when passed to the compareTo method of the examined object, should return less
than or equal to zero value)Creates a matcher of |
| public boolean | matchesSafely(T actual)
Implements abstract org. |
| comparisonDescriptions | back to summary |
|---|---|
| private static final String[] comparisonDescriptions | |
| EQUAL | back to summary |
|---|---|
| private static final int EQUAL | |
| expected | back to summary |
|---|---|
| private final T expected | |
| GREATER_THAN | back to summary |
|---|---|
| private static final int GREATER_THAN | |
| LESS_THAN | back to summary |
|---|---|
| private static final int LESS_THAN | |
| maxCompare | back to summary |
|---|---|
| private final int maxCompare | |
| minCompare | back to summary |
|---|---|
| private final int minCompare | |
| OrderingComparison | back to summary |
|---|---|
| private OrderingComparison(T expected, int minCompare, int maxCompare) | |
| asText | back to summary |
|---|---|
| private static String asText(int comparison) | |
| comparesEqualTo | back to summary |
|---|---|
| public static <T extends Comparable Creates a matcher of For example: assertThat(1, comparesEqualTo(1))
| |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(T actual, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| greaterThan | back to summary |
|---|---|
| public static <T extends Comparable Creates a matcher of For example: assertThat(2, greaterThan(1))
| |
| greaterThanOrEqualTo | back to summary |
|---|---|
| public static <T extends Comparable Creates a matcher of For example: assertThat(1, greaterThanOrEqualTo(1))
| |
| lessThan | back to summary |
|---|---|
| public static <T extends Comparable Creates a matcher of For example: assertThat(1, lessThan(2))
| |
| lessThanOrEqualTo | back to summary |
|---|---|
| public static <T extends Comparable Creates a matcher of For example: assertThat(1, lessThanOrEqualTo(1))
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(T actual) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |