S
- the "self" type of this assertion class. Please read "Emulating
'self types' using Java Generics to simplify fluent API implementation" for more details.T
- the type of the "actual" value.public interface UnevenComparableAssert<S extends UnevenComparableAssert<S,T>,T extends Comparable<? super T>> extends ComparableAssert<S,T>
Comparable
s whose implementation of compareTo
is not consistent
with their implementation of equals
(e.g. BigDecimal
.)Modifier and Type | Method and Description |
---|---|
S |
isEqualByComparingTo(T expected)
Verifies that the actual value is equal to the given one by invoking
. |
S |
isNotEqualByComparingTo(T other)
Verifies that the actual value is not equal to the given one by invoking
. |
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
S isEqualByComparingTo(T expected)
Comparable.compareTo(Object)
.expected
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is not equal to the given one.S isNotEqualByComparingTo(T other)
Comparable.compareTo(Object)
.other
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is equal to the given one.Copyright © 2013-2014 AssertJ. All Rights Reserved.