public final class ComparableAssert extends Object
Comparable.| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<? super T>> |
assertComparable(String message,
T c,
T cEqual,
T cGreater)
Asserts that the given target object implements
Comparable correctly. |
static <T extends Comparable<? super T>> |
assertComparable(String message,
T c,
T cEqual,
T cGreater,
String nullMessage)
Asserts that the given target object implements
Comparable correctly. |
static <T extends Comparable<? super T>> |
assertComparable(T c,
T cEqual,
T cGreater)
Asserts that the given target object implements
Comparable correctly. |
static <T extends Comparable<? super T>> |
assertComparable(T c,
T cEqual,
T cGreater,
String nullMessage)
Asserts that the given target object implements
Comparable correctly. |
public static <T extends Comparable<? super T>> void assertComparable(String message, T c, T cEqual, T cGreater, String nullMessage)
Comparable correctly. If the assertion does not hold, the AssertionError thrown starts with the given message, which may
be null if no such custom message prefix is desired.message - The message.c - The target object.cEqual - Another object that is equal to (but not the same
as) the target object.cGreater - Another object that is greater than the target
object.nullMessage - The message of the NullPointerException expected for comparison against null. If
null, no message check is performed.public static <T extends Comparable<? super T>> void assertComparable(T c, T cEqual, T cGreater, String nullMessage)
Comparable correctly.c - The target object.cEqual - Another object that is equal to (but not the same
as) the target object.cGreater - Another object that is greater than the target
object.nullMessage - The message of the NullPointerException expected for comparison against null. If
null, no message check is performed.public static <T extends Comparable<? super T>> void assertComparable(String message, T c, T cEqual, T cGreater)
Comparable correctly. No message check takes place during
comparison against null. If the assertion does not hold, the AssertionError thrown starts with the given message, which may
be null if no such custom message prefix is desired.message - The message.c - The target object.cEqual - Another object that is equal to (but not the same
as) the target object.cGreater - Another object that is greater than the target
object.public static <T extends Comparable<? super T>> void assertComparable(T c, T cEqual, T cGreater)
Comparable correctly. No message check takes place during
comparison against null.c - The target object.cEqual - Another object that is equal to (but not the same
as) the target object.cGreater - Another object that is greater than the target
object.Copyright © 2017. All Rights Reserved.