Clarify test recommendations when using Arquillian?

2019-07-03 Thread Rick Wagner
Hello Camel Riders, I've recently spent some time working on Camel testing, but find the documentation a bit confusing when Camel is used with Arquillian. The docs describe how 'AdviceWith' [1] can be used, and how isUseAdviceWith() can be used to let Camel know you are advising a route. The prob

AW: Clarify test recommendations when using Arquillian?

2019-07-03 Thread christian.jacob
Hi Rick, IMHO Arquillian is something that was not invented for unit tests. Instead, one should use it for larger tests like regression tests or integration tests. And I doubt that you need adviceWith in those test scenarios. Kind Regards, Christian -Ursprüngliche Nachricht- Von: Rick

Re: Clarify test recommendations when using Arquillian?

2019-07-03 Thread Antonin Stefanutti
Hi Rick, You can find an example on how to use AdviceWith along with Arquillian and CDI here: https://github.com/apache/camel/blob/camel-2.24.1/components/camel-cdi/src/test/java/org/apache/camel/cdi/test/AdvisedRouteTest.java#L84-L92 The trick is to used a context that is not auto started: h