|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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,T extends Comparable<? super T>>
Assertion methods applicable to
s whose implementation of Comparable
compareTo
is not
consistent with their implementation of equals
(e.g.
.)
BigDecimal
Method Summary | |
---|---|
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 . |
Methods inherited from interface org.fest.assertions.core.ComparableAssert |
---|
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |