Top Description Fields Constructors Methods
org.assertj.core.internal

public Class BigDecimals

extends Numbers<BigDecimal>
Class Inheritance
Static Imports
java.math.BigDecimal.ONE, .BigDecimal.ZERO, org.assertj.core.error.ShouldHaveScale.shouldHaveScale

Reusable assertions for BigDecimals.
Authors
Drummond Dawson, Yvonne Wang, Joel Costigliola

Field Summary

Modifier and TypeField and Description
private static final BigDecimals

Constructor Summary

AccessConstructor and Description
pack-priv
public
BigDecimals(ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
protected BigDecimal
protected boolean
public void
assertHasScale(AssertionInfo info, BigDecimal actual, int expectedScale)

public static BigDecimals

Returns:

the singleton instance of this class based on StandardComparisonStrategy.
instance
()

Returns the singleton instance of this class based on StandardComparisonStrategy.

protected boolean
protected BigDecimal
protected BigDecimal
Inherited from org.assertj.core.internal.Numbers:
assertIsBetweenassertIsCloseToassertIsCloseToPercentageassertIsNegativeassertIsNotCloseToassertIsNotCloseToPercentageassertIsNotNegativeassertIsNotPositiveassertIsNotZeroassertIsOneassertIsPositiveassertIsStrictlyBetweenassertIsZeroisGreaterThanOrEqualTo

Field Detail

INSTANCEback to summary
private static final BigDecimals INSTANCE

Constructor Detail

BigDecimalsback to summary
pack-priv BigDecimals()
Annotations
@VisibleForTesting
BigDecimalsback to summary
public BigDecimals(ComparisonStrategy comparisonStrategy)

Method Detail

absDiffback to summary
protected BigDecimal absDiff(BigDecimal actual, BigDecimal other)

Implements abstract org.assertj.core.internal.Numbers.absDiff.

Annotations
@Override
areEqualback to summary
protected boolean areEqual(BigDecimal value1, BigDecimal value2)

Overrides org.assertj.core.internal.Numbers.areEqual.

Annotations
@Override
assertHasScaleback to summary
public void assertHasScale(AssertionInfo info, BigDecimal actual, int expectedScale)
instanceback to summary
public static BigDecimals instance()

Returns the singleton instance of this class based on StandardComparisonStrategy.

Returns:BigDecimals

the singleton instance of this class based on StandardComparisonStrategy.

isGreaterThanback to summary
protected boolean isGreaterThan(BigDecimal value, BigDecimal other)

Implements abstract org.assertj.core.internal.Numbers.isGreaterThan.

Annotations
@Override
oneback to summary
protected BigDecimal one()

Implements abstract org.assertj.core.internal.Numbers.one.

Annotations
@Override
zeroback to summary
protected BigDecimal zero()

Implements abstract org.assertj.core.internal.Numbers.zero.

Annotations
@Override