public class IntAssert extends GenericAssert<IntAssert,Integer> implements NumberAssert
Integer
s and int
s.
To create a new instance of this class invoke either
or
Assertions.assertThat(Integer)
.
Assertions.assertThat(int)
actual, myself
Modifier | Constructor and Description |
---|---|
protected |
IntAssert(int actual)
Creates a new
IntAssert . |
protected |
IntAssert(Integer actual)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
IntAssert |
isEqualTo(int expected)
Verifies that the actual
Integer is equal to the given one. |
IntAssert |
isGreaterThan(int other)
Verifies that the actual
Integer is greater than the given one. |
IntAssert |
isGreaterThanOrEqualTo(int other)
Verifies that the actual
Integer is greater or equal to the given one. |
IntAssert |
isLessThan(int other)
Verifies that the actual
Integer is less than the given one. |
IntAssert |
isLessThanOrEqualTo(int other)
Verifies that the actual
Integer is less or equal to the given one. |
IntAssert |
isNegative()
Verifies that the actual
Integer is negative. |
IntAssert |
isNotEqualTo(int other)
Verifies that the actual
Integer is not equal to the given one. |
IntAssert |
isPositive()
Verifies that the actual
Integer is positive. |
IntAssert |
isZero()
Verifies that the actual
Integer 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 IntAssert(int actual)
IntAssert
.actual
- the actual value to verify.public IntAssert isEqualTo(int expected)
Integer
is equal to the given one.expected
- the value to compare the actual one to.AssertionError
- if the actual Integer
is not equal to the given one.public IntAssert isNotEqualTo(int other)
Integer
is not equal to the given one.other
- the given value.AssertionError
- if the actual Integer
is equal to the given one.public IntAssert isGreaterThan(int other)
Integer
is greater than the given one.other
- the given value.AssertionError
- if the actual Integer
is not greater than the given one.public IntAssert isLessThan(int other)
Integer
is less than the given one.other
- the given value.AssertionError
- if the actual Integer
is not less than the given one.public IntAssert isGreaterThanOrEqualTo(int other)
Integer
is greater or equal to the given one.other
- the given value.AssertionError
- if the actual Integer
is not greater than or equal to the given one.public IntAssert isLessThanOrEqualTo(int other)
Integer
is less or equal to the given one.other
- the given value.AssertionError
- if the actual Integer
is not less than or equal to the given one.public IntAssert isZero()
Integer
is equal to zero.isZero
in interface NumberAssert
AssertionError
- if the actual Integer
is not equal to zero.public IntAssert isPositive()
Integer
is positive.isPositive
in interface NumberAssert
AssertionError
- if the actual Integer
is not positive.public IntAssert isNegative()
Integer
is negative.isNegative
in interface NumberAssert
AssertionError
- if the actual Integer
is not negative.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.