0

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

1 Answers1

2

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

TacheDeChoco
  • 3,683
  • 1
  • 14
  • 17