Package org.fest.assertions.core
Interface UnevenComparableAssert<S,T extends java.lang.Comparable<? super T>>
-
- Type Parameters:
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.
- All Superinterfaces:
ComparableAssert<S,T>
- All Known Implementing Classes:
AbstractUnevenComparableAssert,BigDecimalAssert
public interface UnevenComparableAssert<S,T extends java.lang.Comparable<? super T>> extends ComparableAssert<S,T>
Assertion methods applicable tos whose implementation ofComparablecompareTois not consistent with their implementation ofequals(e.g..)BigDecimal- Author:
- Alex Ruiz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SisEqualByComparingTo(T expected)Verifies that the actual value is equal to the given one by invoking.Comparable.compareTo(Object)SisNotEqualByComparingTo(T other)Verifies that the actual value is not equal to the given one by invoking.Comparable.compareTo(Object)-
Methods inherited from interface org.fest.assertions.core.ComparableAssert
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
-
-
-
-
Method Detail
-
isEqualByComparingTo
S isEqualByComparingTo(T expected)
Verifies that the actual value is equal to the given one by invoking.Comparable.compareTo(Object)- Parameters:
expected- the given value to compare the actual value to.- Returns:
thisassertion object.- Throws:
java.lang.AssertionError- if the actual value isnull.java.lang.AssertionError- if the actual value is not equal to the given one.
-
isNotEqualByComparingTo
S isNotEqualByComparingTo(T other)
Verifies that the actual value is not equal to the given one by invoking.Comparable.compareTo(Object)- Parameters:
other- the given value to compare the actual value to.- Returns:
thisassertion object.- Throws:
java.lang.AssertionError- if the actual value isnull.java.lang.AssertionError- if the actual value is equal to the given one.
-
-