aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-05-19 18:05:05 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-05-23 09:38:51 +0200
commitba67c17a1aaca33c5591a961593be76b33e211b5 (patch)
tree649c7d520198da6eeb27fcbec57cc0aab53ac027 /server
parent584c902520e5a209f221672f2d0400d0b768f12b (diff)
downloadsonarqube-ba67c17a1aaca33c5591a961593be76b33e211b5.tar.gz
sonarqube-ba67c17a1aaca33c5591a961593be76b33e211b5.zip
SONAR-9269 WS api/issues/add_comment check json example is not empty
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java
index 45c5f5bd814..8efac57d7be 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java
@@ -179,7 +179,7 @@ public class AddCommentActionTest {
assertThat(action.isPost()).isTrue();
assertThat(action.isInternal()).isFalse();
assertThat(action.params()).hasSize(2);
- assertThat(action.responseExample()).isNotNull();
+ assertThat(action.responseExampleAsString()).isNotEmpty();
}
private TestResponse call(@Nullable String issueKey, @Nullable String commentText) {