|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 interface ComparableAssert<S,A extends Comparable<A>>
Assertion methods applicable to
s.
Comparable
Method Summary | |
---|---|
S |
isGreaterThan(A other)
Verifies that the actual value is greater than the given one. |
S |
isGreaterThanOrEqualTo(A other)
Verifies that the actual value is greater than or equal to the given one. |
S |
isLessThan(A other)
Verifies that the actual value is less than the given one. |
S |
isLessThanOrEqualTo(A other)
Verifies that the actual value is less than or equal to the given one. |
Method Detail |
---|
S isLessThan(A other)
other
- the given value to compare the actual value to.
this
assertion object.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is equal to or greater than the given one.S isLessThanOrEqualTo(A other)
other
- the given value to compare the actual value to.
this
assertion object.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is greater than the given one.S isGreaterThan(A other)
other
- the given value to compare the actual value to.
this
assertion object.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is equal to or less than the given one.S isGreaterThanOrEqualTo(A other)
other
- the given value to compare the actual value to.
this
assertion object.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is less than the given one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |