You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "LostArtist (via GitHub)" <gi...@apache.org> on 2023/07/24 12:47:40 UTC

[GitHub] [camel] LostArtist commented on a diff in pull request #10804: Camel 19557

LostArtist commented on code in PR #10804:
URL: https://github.com/apache/camel/pull/10804#discussion_r1272216604


##########
core/camel-core/src/test/java/org/apache/camel/builder/FluentProducerTemplateTest.java:
##########
@@ -39,19 +40,19 @@
 public class FluentProducerTemplateTest extends ContextTestSupport {
 
     @Test
-    public void testNoEndpoint() throws Exception {
+    public void testNoEndpoint() {
         FluentProducerTemplate fluent = context.createFluentProducerTemplate();
 
         try {
             fluent.withBody("Hello World").send();
-            fail("Should have thrown exception");
+            Assertions.assertDoesNotThrow(() -> fail("Should have thrown exception"));

Review Comment:
   Yeah, now I see. Thanks, I'll fix it 



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