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 fors.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 BigDecimalabsDiff(BigDecimal actual, BigDecimal other)static BigDecimalsinstance()Returns the singleton instance of this class based onStandardComparisonStrategy.protected booleanisGreaterThan(BigDecimal value, BigDecimal other)protected BigDecimalone()protected BigDecimalzero()-
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:
zeroin classNumbers<BigDecimal>
-
one
protected BigDecimal one()
- Specified by:
onein classNumbers<BigDecimal>
-
absDiff
protected BigDecimal absDiff(BigDecimal actual, BigDecimal other)
- Specified by:
absDiffin classNumbers<BigDecimal>
-
isGreaterThan
protected boolean isGreaterThan(BigDecimal value, BigDecimal other)
- Specified by:
isGreaterThanin classNumbers<BigDecimal>
-
-