Package org.assertj.core.internal
Class BigDecimals
- java.lang.Object
-
- org.assertj.core.internal.Comparables
-
- org.assertj.core.internal.Numbers<BigDecimal>
-
- org.assertj.core.internal.BigDecimals
-
public class BigDecimals extends Numbers<BigDecimal>
Reusable assertions for
s.BigDecimal
- Author:
- Drummond Dawson, Yvonne Wang, Joel Costigliola
-
-
Constructor Summary
Constructors Constructor Description BigDecimals(ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BigDecimal
absDiff(BigDecimal actual, BigDecimal other)
static BigDecimals
instance()
Returns the singleton instance of this class based onStandardComparisonStrategy
.protected boolean
isGreaterThan(BigDecimal value, BigDecimal other)
protected BigDecimal
one()
protected BigDecimal
zero()
-
Methods inherited from class org.assertj.core.internal.Numbers
assertIsBetween, assertIsCloseTo, assertIsCloseToPercentage, assertIsNegative, assertIsNotCloseTo, assertIsNotCloseToPercentage, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsOne, assertIsPositive, assertIsStrictlyBetween, assertIsZero
-
Methods inherited from class org.assertj.core.internal.Comparables
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator
-
-
-
-
Constructor Detail
-
BigDecimals
public BigDecimals(ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
instance
public static BigDecimals instance()
Returns the singleton instance of this class based onStandardComparisonStrategy
.- Returns:
- the singleton instance of this class based on
StandardComparisonStrategy
.
-
zero
protected BigDecimal zero()
- Specified by:
zero
in classNumbers<BigDecimal>
-
one
protected BigDecimal one()
- Specified by:
one
in classNumbers<BigDecimal>
-
absDiff
protected BigDecimal absDiff(BigDecimal actual, BigDecimal other)
- Specified by:
absDiff
in classNumbers<BigDecimal>
-
isGreaterThan
protected boolean isGreaterThan(BigDecimal value, BigDecimal other)
- Specified by:
isGreaterThan
in classNumbers<BigDecimal>
-
-