public class ShortAssert extends GenericAssert<ShortAssert,Short> implements NumberAssert
Shorts and shorts.
To create a new instance of this class invoke either Assertions.assertThat(Short).
Assertions.assertThat(short)
actual, myself| Modifier | Constructor and Description |
|---|---|
protected |
ShortAssert(short actual)
Creates a new
. |
protected |
ShortAssert(Short actual)
Creates a new
. |
| Modifier and Type | Method and Description |
|---|---|
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. |
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfiescustomErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWithprotected ShortAssert(short actual)
ShortAssert.actual - the actual value to verify.protected ShortAssert(Short actual)
ShortAssert.actual - the actual value to verify.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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.