@Test public void should_verify_that_assertIsSorted_is_called() { LongArrays arrays = mock(LongArrays.class); LongArrayAssert assertions = new LongArrayAssert(emptyArray()); assertions.arrays = arrays; assertions.isSorted(); verify(arrays).assertIsSorted(assertions.info, assertions.actual); }
@Test public void should_return_this() { LongArrayAssert objectArrayAssert = new LongArrayAssert(new long[] {1, 2}); assertSame(objectArrayAssert, objectArrayAssert.isSorted()); }