org.fest.assertions.api
Class AbstractUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super A>>

java.lang.Object
  extended by org.fest.assertions.api.AbstractAssert<S,A>
      extended by org.fest.assertions.api.AbstractComparableAssert<S,A>
          extended by 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 extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super A>>
extends AbstractComparableAssert<S,A>
implements UnevenComparableAssert<S,A>

Base class for all implementations of UnevenComparableAssert.

Author:
Alex Ruiz, Mikhail Mazursky

Field Summary
 
Fields inherited from class org.fest.assertions.api.AbstractAssert
actual, myself
 
Constructor Summary
protected AbstractUnevenComparableAssert(A actual, Class<?> selfType)
           
 
Method Summary
 S isEqualByComparingTo(A expected)
          Verifies that the actual value is equal to the given one by invoking Comparable.compareTo(Object).
 S isNotEqualByComparingTo(A other)
          Verifies that the actual value is not equal to the given one by invoking Comparable.compareTo(Object).
 
Methods inherited from class org.fest.assertions.api.AbstractComparableAssert
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, usingComparator, usingDefaultComparator
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fest.assertions.core.ComparableAssert
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
 

Constructor Detail

AbstractUnevenComparableAssert

protected AbstractUnevenComparableAssert(A actual,
                                         Class<?> selfType)
Method Detail

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 extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super 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 extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super 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.