public class BigDecimals extends Numbers<BigDecimal>
BigDecimal
s.Constructor and Description |
---|
BigDecimals(ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areNotCloseEnough(BigDecimal actual,
BigDecimal other,
Offset<BigDecimal> offset) |
void |
assertIsCloseTo(AssertionInfo info,
BigDecimal actual,
BigDecimal other,
Offset<BigDecimal> offset)
Asserts that the actual value is close to the offset.
|
static BigDecimals |
instance()
Returns the singleton instance of this class based on
StandardComparisonStrategy . |
protected BigDecimal |
zero() |
absDiff, assertIsBetween, assertIsCloseToPercentage, assertIsNegative, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isCloseToPercentageCommonChecks
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator
public BigDecimals(ComparisonStrategy comparisonStrategy)
public static BigDecimals instance()
StandardComparisonStrategy
.StandardComparisonStrategy
.protected BigDecimal zero()
zero
in class Numbers<BigDecimal>
public void assertIsCloseTo(AssertionInfo info, BigDecimal actual, BigDecimal other, Offset<BigDecimal> offset)
Numbers
assertIsCloseTo
in class Numbers<BigDecimal>
info
- contains information about the assertion.actual
- the actual value.other
- the expected value.offset
- the given positive offset.protected boolean areNotCloseEnough(BigDecimal actual, BigDecimal other, Offset<BigDecimal> offset)
Copyright © 2013-2015 AssertJ. All Rights Reserved.