@Test public void using_custom_comparator_test() { thrown.expect(UnsupportedOperationException.class); // in that, we don't care of the comparator, the point to check is that we can't use a // comparator assertions.usingComparator(CaseInsensitiveStringComparator.instance); }
@Test public void should_return_this() { BooleanArrayAssert returned = assertions.startsWith(true); assertSame(assertions, returned); }
@Test public void should_verify_that_actual_starts_with_sequence() { assertions.startsWith(true, false); verify(arrays).assertStartsWith(assertions.info, assertions.actual, array(true, false)); }
@Before public void setUp() { arrays = mock(BooleanArrays.class); assertions = new BooleanArrayAssert(emptyArray()); assertions.arrays = arrays; }
@Test public void should_return_this() { BooleanArrayAssert returned = assertions.hasSameSizeAs(other); assertSame(assertions, returned); }
@Test public void should_verify_that_actual_has_expected_size() { assertions.hasSameSizeAs(other); verify(arrays).assertHasSameSizeAs(assertions.info, assertions.actual, other); }
@Test public void using_default_comparator_test() { assertions.usingDefaultComparator(); assertSame(assertions.objects, Objects.instance()); assertSame(assertions.arrays, BooleanArrays.instance()); }