|
||||||||||
| 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<S,T>
org.fest.assertions.ComparableAssert<BigDecimalAssert,BigDecimal>
org.fest.assertions.BigDecimalAssert
public class BigDecimalAssert
Assertions for s.
BigDecimal
To create a new instance of this class invoke .
Assertions.assertThat(BigDecimal)
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
BigDecimalAssert(BigDecimal actual)
Creates a new BigDecimalAssert. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.fest.assertions.ComparableAssert |
|---|
isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo |
| 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 BigDecimalAssert(BigDecimal actual)
BigDecimalAssert.
actual - the target to verify.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||