diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2019-07-09 09:07:58 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-07-26 20:21:46 +0200 |
commit | a634d57f824473b136850290ceeb210f12c5920c (patch) | |
tree | 87720938a57e85141586b47988b9bafbf456494d /sonar-plugin-api | |
parent | 4042a05701682454f01713e60bdd197a8a293487 (diff) | |
download | sonarqube-a634d57f824473b136850290ceeb210f12c5920c.tar.gz sonarqube-a634d57f824473b136850290ceeb210f12c5920c.zip |
SC-795 remove SonarCloud label from emails
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java | 4 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java | 12 |
2 files changed, 0 insertions, 16 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java index 061d93c1b66..fb7d3600758 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/EmailSettings.java @@ -98,10 +98,6 @@ public class EmailSettings { return server.getPublicRootUrl(); } - public String getInstanceName() { - return config.getBoolean("sonar.sonarcloud.enabled").orElse(false) ? "SonarCloud" : "SonarQube"; - } - private String get(String key, String defaultValue) { return config.get(key).orElse(defaultValue); } 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 8de07ea19a0..412e29d5a98 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 @@ -55,18 +55,6 @@ 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); } |