@Test public void should_throw_error_if_given_index_is_null() { thrown.expect(NullPointerException.class); assertions.doesNotContain(value, null); }
@Test public void should_fail_if_actual_contains_given_value_at_given_index() { thrown.expect(AssertionError.class); assertions.doesNotContain(4f, index); }
@Test public void should_throw_error_if_actual_is_null() { thrown.expect(AssertionError.class); assertions = new FloatArrayAssert(null); assertions.doesNotContain(value, index); }
@Test public void should_pass_if_actual_is_empty() { assertions = new FloatArrayAssert(new float[0]); assertions.doesNotContain(value, index); }
@Test public void should_return_this_if_actual_does_not_contain_given_value_at_given_index() { FloatArrayAssert 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() { FloatArrayAssert returned = assertions.startsWith(8f); assertSame(assertions, returned); }
@Test public void should_verify_that_actual_starts_with_sequence() { assertions.startsWith(6f, 8f); verify(arrays).assertStartsWith(assertions.info, assertions.actual, array(6f, 8f)); }
@Before public void setUp() { arrays = mock(FloatArrays.class); assertions = new FloatArrayAssert(emptyArray()); assertions.arrays = arrays; }