public class BigDecimals extends Numbers<java.math.BigDecimal>
BigDecimals.| Modifier and Type | Field and Description |
|---|---|
private static BigDecimals |
INSTANCE |
comparisonStrategy, failures| Constructor and Description |
|---|
BigDecimals() |
BigDecimals(ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areNotCloseEnough(java.math.BigDecimal actual,
java.math.BigDecimal other,
Offset<java.math.BigDecimal> offset) |
void |
assertIsCloseTo(AssertionInfo info,
java.math.BigDecimal actual,
java.math.BigDecimal other,
Offset<java.math.BigDecimal> offset)
Asserts that the actual value is close to the offset.
|
private java.math.BigDecimal |
diff(java.math.BigDecimal actual,
java.math.BigDecimal other) |
static BigDecimals |
instance()
Returns the singleton instance of this class based on
StandardComparisonStrategy. |
protected java.math.BigDecimal |
zero() |
absDiff, assertIsBetween, assertIsCloseToPercentage, assertIsNegative, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isCloseToPercentageCommonChecksareEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator, resetFailures, setFailuresprivate static final BigDecimals INSTANCE
BigDecimals()
public BigDecimals(ComparisonStrategy comparisonStrategy)
public static BigDecimals instance()
StandardComparisonStrategy.StandardComparisonStrategy.protected java.math.BigDecimal zero()
public void assertIsCloseTo(AssertionInfo info, java.math.BigDecimal actual, java.math.BigDecimal other, Offset<java.math.BigDecimal> offset)
NumbersassertIsCloseTo in class Numbers<java.math.BigDecimal>info - contains information about the assertion.actual - the actual value.other - the expected value.offset - the given positive offset.private java.math.BigDecimal diff(java.math.BigDecimal actual,
java.math.BigDecimal other)
protected boolean areNotCloseEnough(java.math.BigDecimal actual,
java.math.BigDecimal other,
Offset<java.math.BigDecimal> offset)