aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java2
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
index 6c54426c691..ad5226988ff 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
@@ -20,11 +20,13 @@
package org.sonar.server.email.ws;
import org.sonar.core.platform.Module;
+import org.sonar.server.common.email.config.EmailConfigurationService;
public class EmailsWsModule extends Module {
@Override
protected void configureModule() {
add(
+ EmailConfigurationService.class,
EmailsWs.class,
SendAction.class);
}
diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
index 8e076cb9c20..e5775c25f9f 100644
--- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
+++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
@@ -29,6 +29,6 @@ public class EmailsWsModuleTest {
public void verify_count_of_added_components() {
ListContainer container = new ListContainer();
new EmailsWsModule().configure(container);
- assertThat(container.getAddedObjects()).hasSize(2);
+ assertThat(container.getAddedObjects()).hasSize(3);
}
}