public class BigDecimalAssert extends ComparableAssert<BigDecimalAssert,BigDecimal> implements NumberAssert
BigDecimal
s.
To create a new instance of this class invoke
.
Assertions.assertThat(BigDecimal)
actual, myself
Modifier | Constructor and Description |
---|---|
protected |
BigDecimalAssert(BigDecimal actual)
Creates a new
BigDecimalAssert . |
Modifier and Type | Method and Description |
---|---|
BigDecimalAssert |
isNegative()
Verifies that the actual
is negative. |
BigDecimalAssert |
isNotZero()
Verifies that the actual
is not equal to zero, regardless of precision. |
BigDecimalAssert |
isPositive()
Verifies that the actual
is positive. |
BigDecimalAssert |
isZero()
Verifies that the actual
is equal to zero, regardless of precision. |
isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo
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 BigDecimalAssert(BigDecimal actual)
BigDecimalAssert
.actual
- the target to verify.public BigDecimalAssert isPositive()
BigDecimal
is positive.isPositive
in interface NumberAssert
AssertionError
- if the actual BigDecimal
value is null
.AssertionError
- if the actual BigDecimal
value is not positive.public BigDecimalAssert isNegative()
BigDecimal
is negative.isNegative
in interface NumberAssert
AssertionError
- if the actual BigDecimal
value is null
.AssertionError
- if the actual BigDecimal
value is not negative.public BigDecimalAssert isZero()
BigDecimal
is equal to zero, regardless of precision.
Essentially, this is the same as
isEqualByComparingTo
(BigDecimal.ZERO
).isZero
in interface NumberAssert
AssertionError
- if the actual BigDecimal
value is null
.AssertionError
- if the actual BigDecimal
value is not equal to zero.public BigDecimalAssert isNotZero()
BigDecimal
is not equal to zero, regardless of precision.
Essentially, this is the same as
isNotEqualByComparingTo
(BigDecimal.ZERO
).AssertionError
- if the actual BigDecimal
is null
.AssertionError
- if the actual BigDecimal
is equal to zero.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.