@Test public void should_return_this() { BigDecimalAssert returned = assertions.isZero(); assertSame(assertions, returned); }
@Before public void setUp() { bigDecimals = mock(BigDecimals.class); assertions = new BigDecimalAssert(ONE); assertions.bigDecimals = bigDecimals; }
@Test public void should_verify_that_actual_is_equal_to_zero() { assertions.isZero(); verify(bigDecimals).assertIsZero(assertions.info, assertions.actual); }
@Test public void should_throw_error_if_actual_is_null() { thrown.expect(AssertionError.class); assertions = new BigDecimalAssert(null, description); assertions.isEqualByComparingTo(expected); }
@Test public void should_fail_if_actual_is_not_equal_to_expected() { thrown.expect(AssertionError.class); assertions.isEqualByComparingTo(expected); }
@Test public void should_pass_if_actual_is_equal_to_epxected() { assertions.isEqualByComparingTo(actual); }
@Test public void should_return_this() { BigDecimalAssert returned = assertions.isEqualByComparingTo(actual); assertSame(assertions, returned); }
@Before public void setUp() { assertions = new BigDecimalAssert(actual, description); comparables = Comparables.instance(); assertions.comparables = comparables; }