From df17a9703297186ffe88059e02247f1e2a61b662 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 14 Jan 2020 12:53:03 +0100 Subject: [PATCH] TMP --- .../java/de/juplo/demo/DemoApplicationIT.java | 2 +- src/test/resources/text.html | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/test/resources/text.html 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!
+

+
+
+
+ + -- 2.20.1