aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-04-16 15:19:27 +0200
committersonartech <sonartech@sonarsource.com>2019-04-23 10:37:57 +0200
commit58bb4b37da6e32a113870b0fc98d5494379641b6 (patch)
tree027172a0a7945ea6b2f3dae5d917e1fce1a66c81 /sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
parentd9e7cb020409491b45199ab8762eb22746e3543d (diff)
downloadsonarqube-58bb4b37da6e32a113870b0fc98d5494379641b6.tar.gz
sonarqube-58bb4b37da6e32a113870b0fc98d5494379641b6.zip
SONAR-11757 single notification for FPs and changes on my issues
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
index af8963c085d..72c2fea4607 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
@@ -61,6 +61,18 @@ public class EmailSettingsTest {
}
@Test
+ public void getInstanceName_returns_sonarqube_when_not_on_SonarCloud() {
+ assertThat(underTest.getInstanceName()).isEqualTo("SonarQube");
+ }
+
+ @Test
+ public void getInstanceName_returns_sonarcloud_on_SonarCloud() {
+ settings.setProperty("sonar.sonarcloud.enabled", true);
+
+ assertThat(underTest.getInstanceName()).isEqualTo("SonarCloud");
+ }
+
+ @Test
public void return_definitions() {
assertThat(EmailSettings.definitions()).hasSize(8);
}