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