[ https://issues.apache.org/jira/browse/CAMEL-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Brouckaert updated CAMEL-4234: ------------------------------------ Attachment: CAMEL-4234.zip Added a simple example that causes the error. There are 2 routes, both with there own input but both use the same output. In my test cases I mock the output. The test case fails because the exception isn't caught. Do you have an idea about the issue? Is there a workaround? Kind regards. Bryan. > ProducerTemplate/MockEndpoint does not seem to trigger context exception > handling. > ---------------------------------------------------------------------------------- > > Key: CAMEL-4234 > URL: https://issues.apache.org/jira/browse/CAMEL-4234 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.8.0 > Environment: JUnit4 Spring tests, Spring DSL > Reporter: Bryan Brouckaert > Attachments: CAMEL-4234.zip, routes.xml > > > Hello, > I have a camel route that has "onException" clause. When I run it on Tomcat > it works pefectly, but in my integration test (JUnit4 + Spring Tests) the > exception handling isn't triggered. The unit tests uses a producer template > and mock endpoint, so it seems that it is in one of those. > I'll try to reproduce it in a small test case. > Kind regards, > Bryan. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira