Use the @MockEndpoints annotation in Camel [Video]
Create mock endpoints in your Camel routes automatically without having to change your route definition
Want to automatically mock endpoints in your Camel routes, without having to change your code?
You can use the
@MockEndpoints annotation when using Camel with Spring.
This video shows you how, and builds a complete test case from start to finish.
What do you think? You can use Markdown in your comment. To write code, indent each line with 4 spaces.