aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core/src
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2024-07-30 14:32:11 +0200
committersonartech <sonartech@sonarsource.com>2024-08-16 20:02:58 +0000
commit808cba5b51d54a61ef2a01e6e78e3874ef53eea5 (patch)
tree88499484c7092f56d221149462c44a6fc82fe2b4 /server/sonar-webserver-core/src
parent37b24b1c6c252c54a5304583ab9acc06b2e3f7bd (diff)
downloadsonarqube-808cba5b51d54a61ef2a01e6e78e3874ef53eea5.tar.gz
sonarqube-808cba5b51d54a61ef2a01e6e78e3874ef53eea5.zip
SONAR-22516 Retrieve SMTP configuration from internal_properties
Diffstat (limited to 'server/sonar-webserver-core/src')
-rw-r--r--server/sonar-webserver-core/src/main/java/org/sonar/server/notification/NotificationModule.java2
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/notification/NotificationModuleTest.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/notification/NotificationModule.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/notification/NotificationModule.java
index f18ed2d3915..9fcd6a92918 100644
--- a/server/sonar-webserver-core/src/main/java/org/sonar/server/notification/NotificationModule.java
+++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/notification/NotificationModule.java
@@ -21,6 +21,7 @@ package org.sonar.server.notification;
import org.sonar.api.config.EmailSettings;
import org.sonar.core.platform.Module;
+import org.sonar.server.email.EmailSmtpConfiguration;
import org.sonar.server.notification.email.EmailNotificationChannel;
public class NotificationModule extends Module {
@@ -28,6 +29,7 @@ public class NotificationModule extends Module {
protected void configureModule() {
add(
EmailSettings.class,
+ EmailSmtpConfiguration.class,
NotificationService.class,
DefaultNotificationManager.class,
NotificationDaemon.class,
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/NotificationModuleTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/NotificationModuleTest.java
index fa040dc7bd5..94fadfc4d61 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/NotificationModuleTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/notification/NotificationModuleTest.java
@@ -29,6 +29,6 @@ public class NotificationModuleTest {
public void verify_count_of_added_components() {
ListContainer container = new ListContainer();
new NotificationModule().configure(container);
- assertThat(container.getAddedObjects()).hasSize(5);
+ assertThat(container.getAddedObjects()).hasSize(6);
}
}