コード例 #1
0
 @Test
 public void should_verify_that_actual_starts_with_sequence() {
   assertions.startsWith(6f, 8f);
   verify(arrays).assertStartsWith(assertions.info, assertions.actual, array(6f, 8f));
 }
コード例 #2
0
 @Test
 public void should_return_this() {
   FloatArrayAssert returned = assertions.startsWith(8f);
   assertSame(assertions, returned);
 }
コード例 #3
0
 @Before
 public void setUp() {
   arrays = mock(FloatArrays.class);
   assertions = new FloatArrayAssert(emptyArray());
   assertions.arrays = arrays;
 }