jono-morris commented on code in PR #11449: URL: https://github.com/apache/camel/pull/11449#discussion_r1328808389
########## components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyMuteExceptionTest.java: ########## @@ -41,13 +41,29 @@ public void testMuteException() throws Exception { } } + @Test + public void testDefaultMuteException() throws Exception { + HttpGet get = new HttpGet("http://localhost:" + getPort() + "/fooDefault"); + get.addHeader("Accept", "application/text"); + try (CloseableHttpClient client = HttpClients.createDefault(); + CloseableHttpResponse response = client.execute(get)) { + + String responseString = EntityUtils.toString(response.getEntity(), "UTF-8"); + assertEquals("", responseString); Review Comment: Done, thanks for that. ########## components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyMuteExceptionTest.java: ########## @@ -41,13 +41,29 @@ public void testMuteException() throws Exception { } } + @Test + public void testDefaultMuteException() throws Exception { + HttpGet get = new HttpGet("http://localhost:" + getPort() + "/fooDefault"); + get.addHeader("Accept", "application/text"); + try (CloseableHttpClient client = HttpClients.createDefault(); + CloseableHttpResponse response = client.execute(get)) { + + String responseString = EntityUtils.toString(response.getEntity(), "UTF-8"); Review Comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org