]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9269 WS api/issues/add_comment check json example is not empty
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 19 May 2017 16:05:05 +0000 (18:05 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 23 May 2017 07:38:51 +0000 (09:38 +0200)
server/sonar-server/src/test/java/org/sonar/server/issue/ws/AddCommentActionTest.java

index 45c5f5bd814d7b25ac021ff00e4b23d607b445bf..8efac57d7be0f5eb2d5486b5cce3dda7e901053a 100644 (file)
@@ -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) {