orpiske commented on code in PR #8084:
URL: https://github.com/apache/camel/pull/8084#discussion_r935342244


##########
components/camel-jetty/src/test/java/org/apache/camel/component/jetty/TwoCamelContextWithJettyRouteTest.java:
##########
@@ -60,7 +61,7 @@ public void process(Exchange exchange) {
 
         Exception ex = assertThrows(Exception.class,
                 () -> template.requestBody("direct:b", "Moon", String.class));
-        assertTrue(ex.getCause() instanceof NoHttpResponseException, "Should 
get the ConnectException");
+        assertTrue(ex.getCause() instanceof IOException, "Should get the 
IOException");

Review Comment:
   Not a major thing ... but maybe you can use the opportunity to simplify this 
assertion and use `assertInstanceOf` instead.



-- 
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

Reply via email to