You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/08/02 09:43:57 UTC

[GitHub] [camel] orpiske commented on a diff in pull request #8084: Errors in Unit-tests for camel-jetty component are solved

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-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org