+
+ @DisplayName("Mappings for HtmlController without a parameter")
+ @ParameterizedTest(name = "{arguments} ==> uri={0}")
+ @ValueSource(strings = { "/", "", "?foo=bar", "/?foo=bar"})
+ void testUriWithoutParameter(String uri)
+ {
+ webClient
+ .get()
+ .uri(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();
+ });
+ }