From: Kai Moritz Date: Tue, 14 Jan 2020 08:53:28 +0000 (+0100) Subject: WIP:it X-Git-Tag: wip-it~11 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e6577333866283c239810179aded550c968925de;p=demos%2Ftesting WIP:it --- diff --git a/src/test/java/de/juplo/demo/DemoApplicationIT.java b/src/test/java/de/juplo/demo/DemoApplicationIT.java index 3e06567..00fdbd4 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationIT.java +++ b/src/test/java/de/juplo/demo/DemoApplicationIT.java @@ -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()); }