rhuan080 commented on PR #7995: URL: https://github.com/apache/camel/pull/7995#issuecomment-1183296038
Hi @essobedo, Actually, the tests work with the new code and doesn`t work with the old code. I think we have two problems here, the copy I have done is correct. However, the test works because it is calling the Advice.adviceWith. This code is passing on tests ``` @Test void testRouteTemplateCanSupportRouteConfiguration() throws Exception { AdviceWith.adviceWith(context, "my-test-file-route", routeBuilder -> { }); getMockEndpoint("mock:result").expectedMessageCount(1); getMockEndpoint("mock:result").expectedBodiesReceived("Error Received"); template.sendBody("direct:start-template", "foo"); assertMockEndpointsSatisfied(); } ``` -- 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