Minor - replace our BiConsumer interface in test with Java 8's

This commit is contained in:
ljacqu
2016-09-04 22:36:36 +02:00
parent 80ee018cc3
commit c8565e1ce5
2 changed files with 24 additions and 30 deletions
@@ -54,7 +54,6 @@ public class AbstractDataSourceConverterTest {
verifyZeroInteractions(source);
}
@SuppressWarnings("rawtypes")
@Test
public void shouldHandleSourceThrowingException() {
// given
@@ -62,7 +61,7 @@ public class AbstractDataSourceConverterTest {
DataSource destination = mock(DataSource.class);
DataSourceType destinationType = DataSourceType.SQLITE;
given(destination.getType()).willReturn(destinationType);
DataSourceConverterTestImpl converter =
DataSourceConverterTestImpl<DataSource> converter =
Mockito.spy(new DataSourceConverterTestImpl<>(source, destination, destinationType));
doThrow(IllegalStateException.class).when(converter).getSource();
CommandSender sender = mock(CommandSender.class);