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 /server/sonar-main | |
parent | 328aa8c538d17bb2c0f201de221e7edeff5e1349 (diff) | |
download | sonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.tar.gz sonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.zip |
NO-JIRA Update Mockito and simpleframework to latest major version
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/test/java/org/sonar/application/AppReloaderImplTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/AppReloaderImplTest.java b/server/sonar-main/src/test/java/org/sonar/application/AppReloaderImplTest.java index 2b6bc10ad0d..344de801487 100644 --- a/server/sonar-main/src/test/java/org/sonar/application/AppReloaderImplTest.java +++ b/server/sonar-main/src/test/java/org/sonar/application/AppReloaderImplTest.java @@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.assertj.core.data.MapEntry.entry; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.when; import static org.sonar.process.ProcessProperties.Property.CLUSTER_ENABLED; import static org.sonar.process.ProcessProperties.Property.PATH_DATA; @@ -72,9 +72,9 @@ public class AppReloaderImplTest { assertThatThrownBy(() -> { underTest.reload(settings); - verifyZeroInteractions(logging); - verifyZeroInteractions(state); - verifyZeroInteractions(fs); + verifyNoInteractions(logging); + verifyNoInteractions(state); + verifyNoInteractions(fs); }) .isInstanceOf(IllegalStateException.class) .hasMessage("Restart is not possible with cluster mode"); @@ -101,9 +101,9 @@ public class AppReloaderImplTest { assertThatThrownBy(() -> { underTest.reload(settings); - verifyZeroInteractions(logging); - verifyZeroInteractions(state); - verifyZeroInteractions(fs); + verifyNoInteractions(logging); + verifyNoInteractions(state); + verifyNoInteractions(fs); }) .isInstanceOf(MessageException.class) .hasMessage("Property [" + propertyKey + "] cannot be changed on restart: [val1] => [val2]"); |