Skip to content
Permalink
Browse files

Suppress warnings for mocking

  • Loading branch information...
jamesmudd committed Oct 3, 2019
1 parent 7b67ede commit c99739be07ddd2b6dac658ff9af98a8b38a5ff95
@@ -83,6 +83,7 @@ void testToString() {
assertThat(globalHeap.toString(), is(equalTo("GlobalHeap [address=2048, objects=1]")));
}

@SuppressWarnings("SameReturnValue")
@Test
void testInvalidVersionThrows() throws IOException {
FileChannel mockFc = Mockito.mock(FileChannel.class);
@@ -55,7 +55,8 @@ void before() {
hdfFc = new HdfFileChannel(fc, sb);
}

@Test
@SuppressWarnings("SameReturnValue")
@Test
void testReadingBuffer() throws IOException {

Mockito.doAnswer(invocation -> {

0 comments on commit c99739b

Please sign in to comment.
You can’t perform that action at this time.