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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]