aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-08-09 10:56:12 -0500
committerSonarTech <sonartech@sonarsource.com>2019-09-24 20:21:13 +0200
commit9b3a7cddc055ec66093cd7a29e26210fb9918dbb (patch)
tree7fe040de34fe68b2b38fb00a4f538fc736033777 /server/sonar-webserver-webapi
parent5a723b74616683a844fe0cd97d66ce63b7eb71f9 (diff)
downloadsonarqube-9b3a7cddc055ec66093cd7a29e26210fb9918dbb.tar.gz
sonarqube-9b3a7cddc055ec66093cd7a29e26210fb9918dbb.zip
SONAR-12366 Create WS to delete New Code Periods
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/setting/ws/SettingsWsModule.java3
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/SettingsWsModuleTest.java2
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);
}
}