diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2019-04-04 15:08:32 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-04-23 10:37:55 +0200 |
commit | 289a5a2a73a320dba2081d19f88ea23c5a405d15 (patch) | |
tree | 2d6139b40ca7fc42ad8bb6c08582b51d1bf70145 /server | |
parent | befc4c94fd7e3e5450028ae8452636f06436ef1a (diff) | |
download | sonarqube-289a5a2a73a320dba2081d19f88ea23c5a405d15.tar.gz sonarqube-289a5a2a73a320dba2081d19f88ea23c5a405d15.zip |
SONAR-11752 remove SonarCloud-specific code
Diffstat (limited to 'server')
2 files changed, 6 insertions, 10 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/notification/ws/DispatchersImpl.java b/server/sonar-server/src/main/java/org/sonar/server/notification/ws/DispatchersImpl.java index 4b557e8c96b..67d9ab9a7fe 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/notification/ws/DispatchersImpl.java +++ b/server/sonar-server/src/main/java/org/sonar/server/notification/ws/DispatchersImpl.java @@ -26,8 +26,6 @@ import java.util.function.Predicate; import org.sonar.api.Startable; import org.sonar.api.config.Configuration; import org.sonar.process.ProcessProperties; -import org.sonar.server.issue.notification.DoNotFixNotificationHandler; -import org.sonar.server.issue.notification.NewIssuesNotificationHandler; import org.sonar.server.notification.NotificationCenter; import org.sonar.server.qualitygate.notification.QGChangeNotificationHandler; @@ -38,9 +36,7 @@ import static org.sonar.server.notification.NotificationDispatcherMetadata.PER_P public class DispatchersImpl implements Dispatchers, Startable { private static final Set<String> GLOBAL_DISPATCHERS_TO_IGNORE_ON_SONAR_CLOUD = ImmutableSet.of( - QGChangeNotificationHandler.KEY, - DoNotFixNotificationHandler.KEY, - NewIssuesNotificationHandler.KEY); + QGChangeNotificationHandler.KEY); private final NotificationCenter notificationCenter; private final Configuration configuration; diff --git a/server/sonar-server/src/test/java/org/sonar/server/notification/ws/DispatchersImplTest.java b/server/sonar-server/src/test/java/org/sonar/server/notification/ws/DispatchersImplTest.java index 1fcd38247fb..cc46c9db775 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/notification/ws/DispatchersImplTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/notification/ws/DispatchersImplTest.java @@ -41,12 +41,12 @@ public class DispatchersImplTest { .setProperty(GLOBAL_NOTIFICATION, "true") .setProperty(PER_PROJECT_NOTIFICATION, "true"), NotificationDispatcherMetadata.create(NewIssuesNotificationHandler.KEY) - .setProperty(GLOBAL_NOTIFICATION, "true"), + .setProperty(GLOBAL_NOTIFICATION, "false"), NotificationDispatcherMetadata.create(QGChangeNotificationHandler.KEY) .setProperty(GLOBAL_NOTIFICATION, "true") .setProperty(PER_PROJECT_NOTIFICATION, "true"), NotificationDispatcherMetadata.create(DoNotFixNotificationHandler.KEY) - .setProperty(GLOBAL_NOTIFICATION, "true") + .setProperty(GLOBAL_NOTIFICATION, "false") .setProperty(PER_PROJECT_NOTIFICATION, "true") }, new NotificationChannel[] {}); @@ -60,11 +60,11 @@ public class DispatchersImplTest { underTest.start(); assertThat(underTest.getGlobalDispatchers()).containsExactly( - QGChangeNotificationHandler.KEY, DoNotFixNotificationHandler.KEY, NewIssuesNotificationHandler.KEY, MyNewIssuesNotificationHandler.KEY); + QGChangeNotificationHandler.KEY, MyNewIssuesNotificationHandler.KEY); } @Test - public void get_global_dispatchers_on_sonar_cloud() { + public void get_global_dispatchers_on_sonarcloud() { settings.setProperty("sonar.sonarcloud.enabled", "true"); underTest.start(); @@ -81,7 +81,7 @@ public class DispatchersImplTest { } @Test - public void get_project_dispatchers_on_sonar_cloud() { + public void get_project_dispatchers_on_sonarcloud() { settings.setProperty("sonar.sonarcloud.enabled", "true"); underTest.start(); |