|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.Assert
org.fest.assertions.GenericAssert<T>
org.fest.assertions.ComparableAssert<T>
T
- the type of Comparable
this template can verify.public abstract class ComparableAssert<T extends Comparable<T>>
Understands a template for assertion methods, applicable to
s.
Comparable
Field Summary |
---|
Fields inherited from class org.fest.assertions.GenericAssert |
---|
actual |
Constructor Summary | |
---|---|
protected |
ComparableAssert(T actual)
Creates a new ComparableAssert . |
Method Summary | |
---|---|
protected void |
assertIsEqualByComparingTo(T expected)
Verifies that the actual is equal to the given one. |
protected void |
assertIsGreaterThan(T other)
Verifies that the actual is greater than the given one. |
protected void |
assertIsGreaterThanOrEqualTo(T other)
Verifies that the actual is greater than or equal to the given one. |
protected void |
assertIsLessThan(T other)
Verifies that the actual is less than the given one. |
protected void |
assertIsLessThanOrEqualTo(T other)
Verifies that the actual is less than or equal to the given one. |
protected void |
assertIsNotEqualByComparingTo(T expected)
Verifies that the actual is not equal to the given one. |
protected abstract ComparableAssert<T> |
isEqualByComparingTo(T expected)
Verifies that the actual is equal to the given one. |
protected abstract ComparableAssert<T> |
isGreaterThan(T other)
Verifies that the actual is greater than the given one. |
protected abstract ComparableAssert<T> |
isGreaterThanOrEqualTo(T other)
Verifies that the actual is greater than or equal to the given one. |
protected abstract ComparableAssert<T> |
isLessThan(T other)
Verifies that the actual is less than the given one. |
protected abstract ComparableAssert<T> |
isLessThanOrEqualTo(T other)
Verifies that the actual is less than or equal to the given one. |
protected abstract ComparableAssert<T> |
isNotEqualByComparingTo(T expected)
Verifies that the actual is not equal to the given one. |
Methods inherited from class org.fest.assertions.GenericAssert |
---|
as, as, assertDoesNotSatisfy, assertEqualTo, assertIs, assertIsNot, assertNotEqualTo, assertNotNull, assertNotSameAs, assertSameAs, assertSatisfies, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isNot, isNotEqualTo, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies |
Methods inherited from class org.fest.assertions.Assert |
---|
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ComparableAssert(T actual)
ComparableAssert
.
actual
- the target to verify.Method Detail |
---|
protected abstract ComparableAssert<T> isEqualByComparingTo(T expected)
Comparable
is equal to the given one.
expected
- the given Comparable
to compare the actual Comparable
to.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not equal to the given one.protected abstract ComparableAssert<T> isNotEqualByComparingTo(T expected)
Comparable
is not equal to the given one.
expected
- the given Comparable
to use to compare to the actual Comparable
.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is equal to the given one.protected abstract ComparableAssert<T> isLessThan(T other)
Comparable
is less than the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not less than the given one.protected abstract ComparableAssert<T> isGreaterThan(T other)
Comparable
is greater than the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not greater than the given one.protected abstract ComparableAssert<T> isLessThanOrEqualTo(T other)
Comparable
is less than or equal to the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not less than or equal to the given one.protected abstract ComparableAssert<T> isGreaterThanOrEqualTo(T other)
Comparable
is greater than or equal to the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not greater than or equal to the given one.protected final void assertIsEqualByComparingTo(T expected)
Comparable
is equal to the given one.
expected
- the given Comparable
to compare the actual Comparable
to.
AssertionError
- if the actual Comparable
value is null
.
AssertionError
- if the actual Comparable
value is not equal to the given one.protected final void assertIsNotEqualByComparingTo(T expected)
Comparable
is not equal to the given one.
expected
- the given Comparable
to use to compare to the actual Comparable
.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is equal to the given one.protected final void assertIsLessThan(T other)
Comparable
is less than the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not less than the given one.protected final void assertIsGreaterThan(T other)
Comparable
is greater than the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not greater than the given one.protected final void assertIsLessThanOrEqualTo(T other)
Comparable
is less than or equal to the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not less than or equal to the given one.protected final void assertIsGreaterThanOrEqualTo(T other)
Comparable
is greater than or equal to the given one.
other
- the given value.
AssertionError
- if the actual Comparable
is null
.
AssertionError
- if the actual Comparable
is not greater than or equal to the given one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |