Hi all !

 I've got a question regarding Unit testing Routes in Camel. I'd like to
test only the flow in my Routes having processors as Mockito mocks and
producers sending to MockEndpoints + additionally be able to mock
Processors defined in on* .

I'm using Java DSL + Annotation - Style Spring DI Config

What would be the better/easier way to acheive my goal with:

   1.

   @UseAdviceWith + @MockEndpoints + .adviceWithBuilder
   2.

   @UseAdviceWtih + repleacing singletons with Mockito Mocks in Spring Bean
   Factory + replacing RouteDefinition in CamelContext before starting it.


 Thanks for suggestions in advance,

Best Regrads,

Stanislaw

Reply via email to