D | FakeDataSourceTest.java | 36 private static final byte[] BUFFER = new byte[500]; field in FakeDataSourceTest 59 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(10); in testReadFull() 61 assertThat(dataSource.read(BUFFER, 10, BUFFER.length)).isEqualTo(5); in testReadFull() 63 assertThat(dataSource.read(BUFFER, 15, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 65 assertThat(dataSource.read(BUFFER, 20, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadFull() 73 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(3); in testReadPartialOpenEnded() 75 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(5); in testReadPartialOpenEnded() 77 assertThat(dataSource.read(BUFFER, 15, BUFFER.length)).isEqualTo(C.RESULT_END_OF_INPUT); in testReadPartialOpenEnded() 85 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(1); in testReadPartialBounded() 87 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(2); in testReadPartialBounded() [all …]
|