Class AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>>

All Implemented Interfaces:
Assert<AbstractBigDecimalScaleAssert<SELF>,Integer>, ComparableAssert<AbstractBigDecimalScaleAssert<SELF>,Integer>, Descriptable<AbstractBigDecimalScaleAssert<SELF>>, ExtensionPoints<AbstractBigDecimalScaleAssert<SELF>,Integer>, NumberAssert<AbstractBigDecimalScaleAssert<SELF>,Integer>
Direct Known Subclasses:
BigDecimalScaleAssert

public abstract class AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>> extends AbstractIntegerAssert<AbstractBigDecimalScaleAssert<SELF>>
Base class for BigDecimal scale assertions.
  • Constructor Details

    • AbstractBigDecimalScaleAssert

      protected AbstractBigDecimalScaleAssert(Integer actualScale, Class<?> selfType)
  • Method Details

    • returnToBigDecimal

      public abstract AbstractBigDecimalAssert<SELF> returnToBigDecimal()
      Returns to the BigDecimal on which we ran scale assertions on.

      Example:

       assertThat(new BigDecimal("2.313")).scale()
                                            .isGreaterThan(1L)
                                            .isLessThan(5L)
                                          .returnToBigDecimal()
                                            .isPositive();
      Returns:
      BigDecimal assertions.