From ba67c17a1aaca33c5591a961593be76b33e211b5 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Fri, 19 May 2017 18:05:05 +0200 Subject: [PATCH] SONAR-9269 WS api/issues/add_comment check json example is not empty --- .../java/org/sonar/server/issue/ws/AddCommentActionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5