You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "MikaelAnderssonWigander (via GitHub)" <gi...@apache.org> on 2023/11/29 09:18:08 UTC
Re: [I] Error No consumers available on endpoint in Unit test with yaml routes [camel-quarkus]
MikaelAnderssonWigander commented on issue #4927:
URL: https://github.com/apache/camel-quarkus/issues/4927#issuecomment-1831510630
I have a smilier issue but using Java DSL and Quarkus 3.5.3
```
@QuarkusTest
class CamelTest extends CamelQuarkusTestSupport {
@Override
public boolean isUseRouteBuilder() {
return false;
}
@Override
public boolean isUseAdviceWith() {
return true;
}
@Test
void myTest() throws Exception {
AdviceWith.adviceWith(context, "myRouteId", route -> {
route.interceptSendToEndpoint("seda:end_process")
.skipSendToOriginalEndpoint()
.to("mock:transform");
});
startRouteDefinitions();
getMockEndpoint("mock:transform").expectedBodyReceived();
template.sendBody("direct:myRoute", "Hello, world!");
}
}
```
--
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