Class AbstractBigDecimalScaleAssert<SELF extends AbstractBigDecimalAssert<SELF>>

    • Constructor Detail

      • AbstractBigDecimalScaleAssert

        protected AbstractBigDecimalScaleAssert​(java.lang.Integer actualScale,
                                                java.lang.Class<?> selfType)
    • Method Detail

      • 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.