I have to write junit test cases for camel routes by skipping the wireTap. Or is there possibility to mock the wireTap? If yes then how ?
Thanks, Sreekanth
I have to write junit test cases for camel routes by skipping the wireTap. Or is there possibility to mock the wireTap? If yes then how ?
Thanks, Sreekanth
If your are wireTapping to uri "direct:foo", you can (for instance) weave your Camel route with:
weaveByToUri("direct:foo").replace().to("mock:junit");
More info at: https://camel.apache.org/manual/advice-with.html