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 problem is that something like Arquillian can insert another layer of
behavior into the scenario, the user may be unaware.  (The particular use
case:  'AdviceWith' is ignored when using Arquillian, because Arquillian
causes the route to be deployed and started before the unit test can apply
'AdviceWith'.)

Does anyone else find this confusing?

Thank you,

Rick

P.S.  I'd be glad to supply a PR or other suggested change to the Camel
site, but I'm afraid I find the docs change process confusing as well.
I've cloned the Camel repo, but can't seem to find the source for the
article at [1], perhaps it's not on the source tip.  If I'm missing the
'right way' to do it, please let me know.

[1] https://camel.apache.org/advicewith.html

Reply via email to