]> source.dussan.org Git - sonarqube.git/commitdiff
fix ServerSystemTest (response.content() must not be called twice)
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 30 Mar 2016 07:29:47 +0000 (09:29 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 30 Mar 2016 07:29:47 +0000 (09:29 +0200)
it/it-tests/src/test/java/it/serverSystem/ServerSystemTest.java

index 184a39bfecedbbfca31b9740a776e809902ac77f..b9b97ec6d190201da64825c799f764c41c46ee6b 100644 (file)
@@ -89,8 +89,7 @@ public class ServerSystemTest {
   @Test
   public void display_system_info() {
     Selenese selenese = Selenese.builder().setHtmlTestsInClasspath("server-administration",
-      "/serverSystem/ServerSystemTest/system_info.html"
-      ).build();
+      "/serverSystem/ServerSystemTest/system_info.html").build();
     new SeleneseTest(selenese).runOn(orchestrator);
   }
 
@@ -105,8 +104,9 @@ public class ServerSystemTest {
       new GetRequest("api/system/info"));
 
     assertThat(response.code()).isEqualTo(200);
-    assertThat(response.content()).contains("\"Compute Engine Database Connection\":", "\"Compute Engine State\":", "\"Compute Engine Tasks\":");
-    assertThat(response.content()).contains("\"Elasticsearch\":", "\"State\":\"GREEN\"", "\"Elasticsearch State\"");
+    assertThat(response.content()).contains(
+      "\"Compute Engine Database Connection\":", "\"Compute Engine State\":", "\"Compute Engine Tasks\":",
+      "\"Elasticsearch\":", "\"State\":\"GREEN\"", "\"Elasticsearch State\"");
   }
 
   private static void waitForComputeEngineToBeUp(Orchestrator orchestrator) throws IOException {