aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-11-02 15:57:50 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-11-05 15:45:42 +0100
commit70b1e1b1539913ff0e5ee8085736419e54eebade (patch)
treedd22f2b3c78c8f9af35ae24ef78a7fe8385fbcc2 /sonar-plugin-api
parent3608f17625b2c54882ebef237b0bc9525eda7e19 (diff)
downloadsonarqube-70b1e1b1539913ff0e5ee8085736419e54eebade.tar.gz
sonarqube-70b1e1b1539913ff0e5ee8085736419e54eebade.zip
SONAR-6916 Improve documentation by adding mandatory information on WS
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java
index a9cde1cc415..e22a829bb1d 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/server/ws/RequestTest.java
@@ -83,8 +83,11 @@ public class RequestTest {
@Override
public void define(Context context) {
NewController controller = context.createController("my_controller");
- NewAction action = controller.createAction("my_action");
- action.setHandler(mock(RequestHandler.class));
+ NewAction action = controller.createAction("my_action")
+ .setDescription("Action Description")
+ .setPost(true)
+ .setSince("5.2")
+ .setHandler(mock(RequestHandler.class));
action
.createParam("required_param")
.setRequired(true);