#363 - Polishing.

Fix failing tests.
This commit is contained in:
Mark Paluch
2020-05-11 15:52:06 +02:00
parent 15c64a4ee1
commit 6f94ace85a
2 changed files with 2 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ public class MappingR2dbcConverterUnitTests {
public void shouldConvertRowToNumber() {
Row rowMock = mock(Row.class);
when(rowMock.get(0, Integer.class)).thenReturn(42);
when(rowMock.get(0)).thenReturn(42);
Integer result = converter.read(Integer.class, rowMock);

View File

@@ -30,7 +30,6 @@ import java.util.UUID;
import org.junit.Test;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.r2dbc.convert.R2dbcConverters;
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToBooleanConverter;
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToLocalDateConverter;
import org.springframework.data.r2dbc.convert.R2dbcConverters.RowToLocalDateTimeConverter;
@@ -137,7 +136,7 @@ public class R2dbcConvertersUnitTests {
public void isConvertingNumber() {
Row row = mock(Row.class);
when(row.get(0, Integer.class)).thenReturn(33);
when(row.get(0)).thenReturn(33);
final Converter<Row, Integer> converter = RowToNumberConverterFactory.INSTANCE.getConverter(Integer.class);