|
||||||||||
| 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<IntAssert,Integer>
org.fest.assertions.IntAssert
public class IntAssert
Assertions for Integers and ints.
To create a new instance of this class invoke either or
Assertions.assertThat(Integer).
Assertions.assertThat(int)
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
IntAssert(int actual)
Creates a new IntAssert. |
protected |
IntAssert(Integer actual)
Creates a new . |
| Method Summary | |
|---|---|
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. |
| 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 IntAssert(int actual)
IntAssert.
actual - the actual value to verify.protected IntAssert(Integer actual)
IntAssert.
actual - the actual value to verify.| Method Detail |
|---|
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 NumberAssertAssertionError - if the actual Integer is not equal to zero.public IntAssert isPositive()
Integer is positive.
isPositive in interface NumberAssertAssertionError - if the actual Integer is not positive.public IntAssert isNegative()
Integer is negative.
isNegative in interface NumberAssertAssertionError - if the actual Integer is not negative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||