@Test public void should_verify_that_actual_is_greater_than_expected() { assertions.isGreaterThan((short) 6); verify(shorts).assertGreaterThan(assertions.info, assertions.actual, (short) 6); }
@Test public void should_return_this() { ShortAssert returned = assertions.isGreaterThan((short) 6); assertSame(assertions, returned); }
@Test public void should_pass_if_actual_is_not_null() { assertions.isNotNull(); }
@Before public void setUp() { shorts = mock(Shorts.class); assertions = new ShortAssert((short) 8); assertions.shorts = shorts; }
@Test public void should_fail_if_actual_is_equal_to_expected() { thrown.expect(AssertionError.class); assertions.isLessThan(actual); }
@Test public void should_fail_if_actual_is_null() { thrown.expect(AssertionError.class); assertions = new ShortAssert(null); assertions.isNotNull(); }
@Test public void should_throw_error_if_expected_is_null() { thrown.expect(NullPointerException.class); assertions.isLessThan(null); }
@Test public void should_fail_if_actual_is_greater_than_expected() { thrown.expect(AssertionError.class); assertions.isLessThan(new Short((short) 2)); }
@Test public void should_throw_error_if_actual_is_null() { thrown.expect(AssertionError.class); assertions = new ShortAssert(null); assertions.isLessThan(expected); }
@Test public void should_return_this() { ShortAssert returned = assertions.isLessThan(expected); assertSame(assertions, returned); }
@Test public void should_pass_if_actual_is_less_than_expected() { assertions.isLessThan(expected); }
@Test public void should_return_this() { ShortAssert returned = assertions.isZero(); assertSame(assertions, returned); }
@Test public void should_verify_that_actual_is_equal_to_zero() { assertions.isZero(); verify(shorts).assertIsZero(assertions.info, assertions.actual); }