WIP:it
authorKai Moritz <kai@juplo.de>
Tue, 14 Jan 2020 08:53:28 +0000 (09:53 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 14 Jan 2020 08:53:28 +0000 (09:53 +0100)
src/test/java/de/juplo/demo/DemoApplicationIT.java

index 3e06567..00fdbd4 100644 (file)
@@ -43,7 +43,7 @@ class DemoApplicationIT extends IntegrationTestBase
         .get()
         .uri(URI.create("http://S.U.T/?path=test.txt"))
         .exchange()
-        .expectStatus().is2xxSuccessful()
+        .expectStatus().isOk()
         .expectHeader().contentType(MediaType.TEXT_HTML)
         .expectBody(String.class).isEqualTo("Hello World!\n");
   }
@@ -57,8 +57,7 @@ class DemoApplicationIT extends IntegrationTestBase
       return new RemoteContentService(
           WebClient
               .builder()
-              .baseUrl("http://localhost:" +
-                  DemoApplicationIT.MOCK_SERVER.getLocalPort())
+              .baseUrl("http://localhost:" + MOCK_SERVER.getLocalPort())
               .build());
     }