aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core
diff options
context:
space:
mode:
authorLéo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com>2022-04-04 18:08:34 +0200
committersonartech <sonartech@sonarsource.com>2022-04-04 20:02:56 +0000
commit12939729652fad6fa91b72c2139da65dc07ec7e0 (patch)
tree4752663c64fe527eabe2129028a22a1f394351cb /server/sonar-webserver-core
parent328aa8c538d17bb2c0f201de221e7edeff5e1349 (diff)
downloadsonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.tar.gz
sonarqube-12939729652fad6fa91b72c2139da65dc07ec7e0.zip
NO-JIRA Update Mockito and simpleframework to latest major version
Diffstat (limited to 'server/sonar-webserver-core')
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/notification/email/EmailNotificationChannelTest.java4
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/platform/db/migration/AutoDbMigrationTest.java6
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java8
3 files changed, 9 insertions, 9 deletions
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/email/EmailNotificationChannelTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/email/EmailNotificationChannelTest.java
index e52f4db65d3..b31c7476c70 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/email/EmailNotificationChannelTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/email/EmailNotificationChannelTest.java
@@ -52,8 +52,8 @@ import static org.apache.commons.lang.RandomStringUtils.random;
import static org.assertj.core.api.Assertions.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 static org.mockito.Mockito.when;
@RunWith(DataProviderRunner.class)
@@ -239,7 +239,7 @@ public class EmailNotificationChannelTest {
int count = underTest.deliverAll(Collections.emptySet());
assertThat(count).isZero();
- verifyZeroInteractions(emailSettings);
+ verifyNoInteractions(emailSettings);
assertThat(smtpServer.getMessages()).isEmpty();
}
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/db/migration/AutoDbMigrationTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/db/migration/AutoDbMigrationTest.java
index 65a751a69bf..8e92b826eda 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/db/migration/AutoDbMigrationTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/platform/db/migration/AutoDbMigrationTest.java
@@ -36,7 +36,7 @@ import org.sonar.server.platform.db.migration.engine.MigrationEngine;
import static org.assertj.core.api.Assertions.assertThat;
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;
public class AutoDbMigrationTest {
@@ -84,7 +84,7 @@ public class AutoDbMigrationTest {
underTest.start();
- verifyZeroInteractions(migrationEngine);
+ verifyNoInteractions(migrationEngine);
assertThat(logTester.logs(LoggerLevel.INFO)).isEmpty();
}
@@ -108,7 +108,7 @@ public class AutoDbMigrationTest {
underTest.start();
- verifyZeroInteractions(migrationEngine);
+ verifyNoInteractions(migrationEngine);
assertThat(logTester.logs(LoggerLevel.INFO)).isEmpty();
}
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java
index 23e4e7d3a30..4e98d1f2136 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/webhook/WebhookQGChangeEventListenerTest.java
@@ -60,7 +60,7 @@ import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
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.core.util.stream.MoreCollectors.toArrayList;
import static org.sonar.db.component.BranchType.BRANCH;
@@ -94,7 +94,7 @@ public class WebhookQGChangeEventListenerTest {
mockedUnderTest.onIssueChanges(qualityGateEvent, CHANGED_ISSUES_ARE_IGNORED);
verify(webHooks).isEnabled(qualityGateEvent.getProject());
- verifyZeroInteractions(webhookPayloadFactory, mockedDbClient);
+ verifyNoInteractions(webhookPayloadFactory, mockedDbClient);
}
@DataProvider
@@ -121,7 +121,7 @@ public class WebhookQGChangeEventListenerTest {
underTest.onIssueChanges(qualityGateEvent, CHANGED_ISSUES_ARE_IGNORED);
- verifyZeroInteractions(webhookPayloadFactory, mockedDbClient);
+ verifyNoInteractions(webhookPayloadFactory, mockedDbClient);
}
@Test
@@ -134,7 +134,7 @@ public class WebhookQGChangeEventListenerTest {
underTest.onIssueChanges(qualityGateEvent, CHANGED_ISSUES_ARE_IGNORED);
- verifyZeroInteractions(webhookPayloadFactory, mockedDbClient);
+ verifyNoInteractions(webhookPayloadFactory, mockedDbClient);
}
@Test