diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-11-02 15:57:50 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-11-05 15:45:42 +0100 |
commit | 70b1e1b1539913ff0e5ee8085736419e54eebade (patch) | |
tree | dd22f2b3c78c8f9af35ae24ef78a7fe8385fbcc2 /sonar-plugin-api | |
parent | 3608f17625b2c54882ebef237b0bc9525eda7e19 (diff) | |
download | sonarqube-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.java | 7 |
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); |