diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-08-09 10:56:12 -0500 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-09-24 20:21:13 +0200 |
commit | 9b3a7cddc055ec66093cd7a29e26210fb9918dbb (patch) | |
tree | 7fe040de34fe68b2b38fb00a4f538fc736033777 /server/sonar-webserver-webapi | |
parent | 5a723b74616683a844fe0cd97d66ce63b7eb71f9 (diff) | |
download | sonarqube-9b3a7cddc055ec66093cd7a29e26210fb9918dbb.tar.gz sonarqube-9b3a7cddc055ec66093cd7a29e26210fb9918dbb.zip |
SONAR-12366 Create WS to delete New Code Periods
Diffstat (limited to 'server/sonar-webserver-webapi')
2 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsModule.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsModule.java index 7b21556d6bb..a6aa98ac31a 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsModule.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsModule.java @@ -37,6 +37,7 @@ public class SettingsWsModule extends Module { SettingsUpdater.class, SettingValidations.class, ShowNewCodePeriodAction.class, - UpdateNewCodePeriodAction.class); + UpdateNewCodePeriodAction.class, + DeleteNewCodePeriodAction.class); } } diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/SettingsWsModuleTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/SettingsWsModuleTest.java index a13ca7fe359..c99fc2a4487 100644 --- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/SettingsWsModuleTest.java +++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/SettingsWsModuleTest.java @@ -29,6 +29,6 @@ public class SettingsWsModuleTest { public void verify_count_of_added_components() { ComponentContainer container = new ComponentContainer(); new SettingsWsModule().configure(container); - assertThat(container.size()).isEqualTo(13 + 2); + assertThat(container.size()).isEqualTo(14 + 2); } } |