#316 - Adapt to Mockito 3.3.

Mockito reports falsely unnecessary stubbings so we're switching to the silent runner for these cases.
This commit is contained in:
Mark Paluch
2020-03-11 09:04:40 +01:00
parent ed297c08fe
commit 228c6748bf

View File

@@ -333,7 +333,7 @@ public class DefaultDatabaseClientUnitTests {
.connectionFactory(connectionFactory)
.dataAccessStrategy(new DefaultReactiveDataAccessStrategy(PostgresDialect.INSTANCE)).build();
when(result.getRowsUpdated()).thenReturn(Mono.empty());
when(result.getRowsUpdated()).thenReturn(Mono.empty(), Mono.just(2), Flux.just(1, 2, 3));
databaseClient.execute("DROP TABLE tab;") //
.fetch() //
@@ -342,8 +342,6 @@ public class DefaultDatabaseClientUnitTests {
.expectNextCount(1) //
.verifyComplete();
when(result.getRowsUpdated()).thenReturn(Mono.just(2));
databaseClient.execute("DROP TABLE tab;") //
.fetch() //
.rowsUpdated() //
@@ -351,8 +349,6 @@ public class DefaultDatabaseClientUnitTests {
.expectNextCount(1) //
.verifyComplete();
when(result.getRowsUpdated()).thenReturn(Flux.just(1, 2, 3));
databaseClient.execute("DROP TABLE tab;") //
.fetch() //
.rowsUpdated() //