public class LongAssert extends GenericAssert<LongAssert,Long> implements NumberAssert
Long
s and long
s.
To create a new instance of this class invoke either
or
Assertions.assertThat(Long)
.
Assertions.assertThat(long)
actual, myself
Modifier | Constructor and Description |
---|---|
protected |
LongAssert(long actual)
Creates a new
. |
protected |
LongAssert(Long actual)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
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. |
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith
protected LongAssert(long actual)
LongAssert
.actual
- the actual value to verify.protected LongAssert(Long actual)
LongAssert
.actual
- the actual value to verify.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 NumberAssert
AssertionError
- if the actual Long
is not equal to zero.public LongAssert isPositive()
Long
is positive.isPositive
in interface NumberAssert
AssertionError
- if the actual Long
is not positive.public LongAssert isNegative()
Long
is negative.isNegative
in interface NumberAssert
AssertionError
- if the actual Long
is not negative.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.