});
verify(service).getRemoteText("foo");
}
+
+ @Test
+ @DisplayName("Mapping for HtmlController: /")
+ void testUriWithoutParameter()
+ {
+ webClient
+ .get()
+ .uri("/")
+ .exchange()
+ .expectStatus().isOk()
+ .expectBody(String.class).value(rendered ->
+ {
+ Document doc = Jsoup.parse(rendered);
+ assertThat(
+ doc
+ .select("html > body > main > div > div > div > pre")
+ .isEmpty())
+ .isFalse();
+ assertThat(
+ doc
+ .select("html > body > main > div > div > div > pre")
+ .text())
+ .isEmpty();
+ });
+ }
}