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