From: Kai Moritz Date: Tue, 14 Jan 2020 11:53:03 +0000 (+0100) Subject: TMP X-Git-Tag: wip-it~3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=df17a9703297186ffe88059e02247f1e2a61b662;p=demos%2Ftesting TMP --- diff --git a/src/test/java/de/juplo/demo/DemoApplicationIT.java b/src/test/java/de/juplo/demo/DemoApplicationIT.java index 674efc8..92830b8 100644 --- a/src/test/java/de/juplo/demo/DemoApplicationIT.java +++ b/src/test/java/de/juplo/demo/DemoApplicationIT.java @@ -36,7 +36,7 @@ class DemoApplicationIT extends IntegrationTestBase .exchange() .expectStatus().isOk() .expectHeader().contentType(MediaType.TEXT_HTML) - .expectBody(String.class).isEqualTo("Hello World!\n"); + .expectBody().xpath("/html/body/main/div/div/pre", "Hello World!\n"); } @Configuration diff --git a/src/test/resources/text.html b/src/test/resources/text.html new file mode 100644 index 0000000..459c3b3 --- /dev/null +++ b/src/test/resources/text.html @@ -0,0 +1,23 @@ + + + + + + Shows Remote-Content + + + + +
+
+

Rendered Remote-Content

+
+

Hello World!
+

+
+
+
+ +