org.fest.assertions.api
Class AbstractUnevenComparableAssert<S,A extends Comparable<A>>
java.lang.Object
org.fest.assertions.api.AbstractAssert<S,A>
org.fest.assertions.api.AbstractComparableAssert<S,A>
org.fest.assertions.api.AbstractUnevenComparableAssert<S,A>
- 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.A
- the type of the "actual" value.
- All Implemented Interfaces:
- Assert<S,A>, ComparableAssert<S,A>, Descriptable<S>, ExtensionPoints<S,A>, UnevenComparableAssert<S,A>
- Direct Known Subclasses:
- BigDecimalAssert
public abstract class AbstractUnevenComparableAssert<S,A extends Comparable<A>>
- extends AbstractComparableAssert<S,A>
- implements UnevenComparableAssert<S,A>
Base class for all implementations of UnevenComparableAssert
.
- Author:
- Alex Ruiz
Methods inherited from class org.fest.assertions.api.AbstractAssert |
as, as, describedAs, describedAs, descriptionText, doesNotHave, equals, has, hashCode, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs |
AbstractUnevenComparableAssert
protected AbstractUnevenComparableAssert(A actual,
Class<S> selfType)
isEqualByComparingTo
public final S isEqualByComparingTo(A expected)
- Verifies that the actual value is equal to the given one by invoking
Comparable.compareTo(Object)
.
- Specified by:
isEqualByComparingTo
in interface UnevenComparableAssert<S,A extends Comparable<A>>
- Parameters:
expected
- the given value to compare the actual value to.
- Returns:
this
assertion object.
isNotEqualByComparingTo
public final S isNotEqualByComparingTo(A other)
- Verifies that the actual value is not equal to the given one by invoking
Comparable.compareTo(Object)
.
- Specified by:
isNotEqualByComparingTo
in interface UnevenComparableAssert<S,A extends Comparable<A>>
- Parameters:
other
- the given value to compare the actual value to.
- Returns:
this
assertion object.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.