Skip to content

Commit

Permalink
Polishing #1917
Browse files Browse the repository at this point in the history
Move off deprecated Mockito API.
  • Loading branch information
mp911de committed Nov 22, 2021
1 parent 238c3fd commit f66786c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ void testProvidedResources() {

assertThat(TestFutures.getOrTimeout(sut.shutdown())).isTrue();

verifyZeroInteractions(executorMock);
verifyZeroInteractions(groupProviderMock);
verifyZeroInteractions(timerMock);
verifyNoMoreInteractions(executorMock);
verifyNoMoreInteractions(groupProviderMock);
verifyNoMoreInteractions(timerMock);
verify(latencyCollectorMock).isEnabled();
verifyNoMoreInteractions(latencyCollectorMock);
}
Expand Down Expand Up @@ -166,9 +166,9 @@ void mutateResources() {
assertThat(sut).hasFieldOrPropertyWithValue("shutdownCheck", false);
assertThat(copy).hasFieldOrPropertyWithValue("shutdownCheck", true);

verifyZeroInteractions(executorMock);
verifyZeroInteractions(groupProviderMock);
verifyZeroInteractions(timerMock);
verifyNoMoreInteractions(executorMock);
verifyNoMoreInteractions(groupProviderMock);
verifyNoMoreInteractions(timerMock);
}

@Test
Expand Down

0 comments on commit f66786c

Please sign in to comment.