Exception handlers added with CamelTestSupport.adviceWith() are not applied
consistently
----------------------------------------------------------------------------------------
Key: CAMEL-4296
URL: https://issues.apache.org/jira/browse/CAMEL-4296
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.8.0
Environment: JUnit 4
Reporter: Jakub Korab
This may be related to CAMEL-4184.
I have a RouteBuilder doing some discovery testing around load balancer
behaviour. There are two RouteBuilders applied within tests using adviceWith
(source code attached)
1. ThrowsExceptionFromA intercepts a call to an endpoint and throws an exception
2. ExceptionHandler applies an onException for that particular Exception type,
and tweaks the body.
When ThrowsExceptionFromA is applied before ExceptionHandler using adviceWith,
the exception is not handled.
When ExceptionHandler is applied before ThrowsExceptionFromA using adviceWith,
it is.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira