public class BigDecimalAssert extends ComparableAssert<BigDecimalAssert,BigDecimal> implements NumberAssert
BigDecimals.
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, isNotEqualByComparingToas, 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 BigDecimalAssert(BigDecimal actual)
BigDecimalAssert.actual - the target to verify.public BigDecimalAssert isPositive()
BigDecimal is positive.isPositive in interface NumberAssertAssertionError - 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 NumberAssertAssertionError - 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 NumberAssertAssertionError - 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-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.