S
- the "self" type of this assertion class. Please read "Emulating
'self types' using Java Generics to simplify fluent API implementation" for more details.A
- the type of the "actual" value.public abstract class AbstractUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends java.lang.Comparable<? super A>> extends AbstractComparableAssert<S,A> implements UnevenComparableAssert<S,A>
UnevenComparableAssert
.actual, myself
Modifier | Constructor and Description |
---|---|
protected |
AbstractUnevenComparableAssert(A actual,
java.lang.Class<?> selfType) |
Modifier and Type | Method and Description |
---|---|
S |
isEqualByComparingTo(A expected)
Verifies that the actual value is equal to the given one by invoking
. |
S |
isNotEqualByComparingTo(A other)
Verifies that the actual value is not equal to the given one by invoking
. |
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, usingComparator, usingDefaultComparator
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
protected AbstractUnevenComparableAssert(A actual, java.lang.Class<?> selfType)
public S isEqualByComparingTo(A expected)
Comparable.compareTo(Object)
.isEqualByComparingTo
in interface UnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends java.lang.Comparable<? super A>>
expected
- the given value to compare the actual value to.this
assertion object.public S isNotEqualByComparingTo(A other)
Comparable.compareTo(Object)
.isNotEqualByComparingTo
in interface UnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends java.lang.Comparable<? super A>>
other
- the given value to compare the actual value to.this
assertion object.Copyright © 2007–2018. All rights reserved.