@Test public void should_fail_if_actual_contains_given_value_at_given_index() { thrown.expect(AssertionError.class); assertions.doesNotContain(4, index); }
@Test public void should_throw_error_if_actual_is_empty() { thrown.expect(AssertionError.class); assertions = new IntArrayAssert(new int[0]); assertions.doesNotContain(value, index); }
@Test public void should_throw_error_if_given_index_is_null() { thrown.expect(AssertionError.class); assertions.doesNotContain(value, null); }
@Test public void should_return_this_if_actual_does_not_contain_given_value_at_given_index() { IntArrayAssert returned = assertions.doesNotContain(value, index); assertSame(returned, assertions); }
@Test public void should_pass_if_actual_does_not_contain_given_value_at_given_index() { assertions.doesNotContain(value, index); }
@Test public void should_return_this() { IntArrayAssert returned = assertions.isNotEmpty(); assertSame(assertions, returned); }
@Test public void should_verify_that_actual_is_not_empty() { assertions.isNotEmpty(); verify(arrays).assertNotEmpty(assertions.info, assertions.actual); }
@Before public void setUp() { arrays = mock(IntArrays.class); assertions = new IntArrayAssert(emptyArray()); assertions.arrays = arrays; }