|
||||||||||
| 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<LongAssert,Long>
org.fest.assertions.LongAssert
public class LongAssert
Assertions for Longs and longs.
To create a new instance of this class invoke either or
Assertions.assertThat(Long).
Assertions.assertThat(long)
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
LongAssert(long actual)
Creates a new . |
protected |
LongAssert(Long actual)
Creates a new . |
| Method Summary | |
|---|---|
LongAssert |
isEqualTo(long expected)
Verifies that the actual Long is equal to the given one. |
LongAssert |
isGreaterThan(long other)
Verifies that the actual Long is greater than the given one. |
LongAssert |
isGreaterThanOrEqualTo(long other)
Verifies that the actual Long is greater or equal to the given one. |
LongAssert |
isLessThan(long other)
Verifies that the actual Long is less than the given one. |
LongAssert |
isLessThanOrEqualTo(long other)
Verifies that the actual Long is less or equal to the given one. |
LongAssert |
isNegative()
Verifies that the actual Long is negative. |
LongAssert |
isNotEqualTo(long other)
Verifies that the actual Long is not equal to the given one. |
LongAssert |
isPositive()
Verifies that the actual Long is positive. |
LongAssert |
isZero()
Verifies that the actual Long is equal to zero. |
| Methods inherited from class org.fest.assertions.GenericAssert |
|---|
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, 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 LongAssert(long actual)
LongAssert.
actual - the actual value to verify.protected LongAssert(Long actual)
LongAssert.
actual - the actual value to verify.| Method Detail |
|---|
public LongAssert isEqualTo(long expected)
Long is equal to the given one.
expected - the value to compare the actual one to.
AssertionError - if the actual Long is not equal to the given one.public LongAssert isNotEqualTo(long other)
Long is not equal to the given one.
other - the given value.
AssertionError - if the actual Long is equal to the given one.public LongAssert isGreaterThan(long other)
Long is greater than the given one.
other - the given value.
AssertionError - if the actual Long is not greater than the given one.public LongAssert isLessThan(long other)
Long is less than the given one.
other - the given value.
AssertionError - if the actual Long is not less than the given one.public LongAssert isGreaterThanOrEqualTo(long other)
Long is greater or equal to the given one.
other - the given value.
AssertionError - if the actual Long is not greater than or equal to the given one.public LongAssert isLessThanOrEqualTo(long other)
Long is less or equal to the given one.
other - the given value.
AssertionError - if the actual Long is not less than or equal to the given one.public LongAssert isZero()
Long is equal to zero.
isZero in interface NumberAssertAssertionError - if the actual Long is not equal to zero.public LongAssert isPositive()
Long is positive.
isPositive in interface NumberAssertAssertionError - if the actual Long is not positive.public LongAssert isNegative()
Long is negative.
isNegative in interface NumberAssertAssertionError - if the actual Long is not negative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||