diff options
author | Léo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com> | 2022-04-04 18:08:34 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-04-04 20:02:56 +0000 |
commit | 12939729652fad6fa91b72c2139da65dc07ec7e0 (patch) | |
tree | 4752663c64fe527eabe2129028a22a1f394351cb /sonar-duplications/src/test/java/org/sonar/duplications/token | |
parent | 328aa8c538d17bb2c0f201de221e7edeff5e1349 (diff) | |
download | sonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.tar.gz sonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.zip |
NO-JIRA Update Mockito and simpleframework to latest major version
Diffstat (limited to 'sonar-duplications/src/test/java/org/sonar/duplications/token')
-rw-r--r-- | sonar-duplications/src/test/java/org/sonar/duplications/token/BlackHoleTokenChannelTest.java | 4 | ||||
-rw-r--r-- | sonar-duplications/src/test/java/org/sonar/duplications/token/TokenChannelTest.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-duplications/src/test/java/org/sonar/duplications/token/BlackHoleTokenChannelTest.java b/sonar-duplications/src/test/java/org/sonar/duplications/token/BlackHoleTokenChannelTest.java index a8c1fa521f4..8f8c51c12c5 100644 --- a/sonar-duplications/src/test/java/org/sonar/duplications/token/BlackHoleTokenChannelTest.java +++ b/sonar-duplications/src/test/java/org/sonar/duplications/token/BlackHoleTokenChannelTest.java @@ -24,7 +24,7 @@ import org.sonar.channel.CodeReader; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.verifyNoInteractions; public class BlackHoleTokenChannelTest { @@ -37,7 +37,7 @@ public class BlackHoleTokenChannelTest { assertThat(channel.consume(codeReader, output)).isTrue(); assertThat(codeReader.getLinePosition()).isOne(); assertThat(codeReader.getColumnPosition()).isEqualTo(3); - verifyZeroInteractions(output); + verifyNoInteractions(output); } } diff --git a/sonar-duplications/src/test/java/org/sonar/duplications/token/TokenChannelTest.java b/sonar-duplications/src/test/java/org/sonar/duplications/token/TokenChannelTest.java index cccabc53a90..35a12b953a5 100644 --- a/sonar-duplications/src/test/java/org/sonar/duplications/token/TokenChannelTest.java +++ b/sonar-duplications/src/test/java/org/sonar/duplications/token/TokenChannelTest.java @@ -23,8 +23,8 @@ import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.verifyNoMoreInteractions; -import static org.mockito.Mockito.verifyZeroInteractions; import org.junit.Test; import org.mockito.ArgumentCaptor; @@ -69,7 +69,7 @@ public class TokenChannelTest { CodeReader codeReader = new CodeReader("123"); assertThat(channel.consume(new CodeReader("123"), output), is(false)); - verifyZeroInteractions(output); + verifyNoInteractions(output); assertThat(codeReader.getLinePosition(), is(1)); assertThat(codeReader.getColumnPosition(), is(0)); } |