diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-04-16 15:19:27 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-04-23 10:37:57 +0200 |
commit | 58bb4b37da6e32a113870b0fc98d5494379641b6 (patch) | |
tree | 027172a0a7945ea6b2f3dae5d917e1fce1a66c81 /sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java | |
parent | d9e7cb020409491b45199ab8762eb22746e3543d (diff) | |
download | sonarqube-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.java | 12 |
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); } |