From 8e63e872f7673e6b397f5e8c3d3b8f8486b6281e Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 3 Oct 2022 17:45:23 +0200 Subject: [PATCH] Fixes a test tagged as "external" that fails during local builds with Java 17+. Signed-off-by: Simone Bordet --- .../test/java/org/eclipse/jetty/demos/ProxyWebAppTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/demo-proxy-webapp/src/test/java/org/eclipse/jetty/demos/ProxyWebAppTest.java b/demos/demo-proxy-webapp/src/test/java/org/eclipse/jetty/demos/ProxyWebAppTest.java index beb67a35b54..9955eb544f6 100644 --- a/demos/demo-proxy-webapp/src/test/java/org/eclipse/jetty/demos/ProxyWebAppTest.java +++ b/demos/demo-proxy-webapp/src/test/java/org/eclipse/jetty/demos/ProxyWebAppTest.java @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.containsStringIgnoringCase; import static org.hamcrest.Matchers.is; /** @@ -86,6 +86,6 @@ public class ProxyWebAppTest // this proxy configuration, not redirected to the actual website. assertThat("response status", response.getStatus(), is(HttpStatus.OK_200)); // Expecting a Javadoc / APIDoc response - look for something unique for APIdoc. - assertThat("response", response.getContentAsString(), containsString("All Classes")); + assertThat("response", response.getContentAsString(), containsStringIgnoringCase("javadoc")); } }