camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakub Korab (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4296) Exception handlers added with CamelTestSupport.adviceWith() are not applied consistently
Date Tue, 02 Aug 2011 15:49:27 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-4296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jakub Korab updated CAMEL-4296:
-------------------------------

    Attachment: MultiAdviceWithTest.java

JUnit test demonstrating the behaviour.

> 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
>         Attachments: MultiAdviceWithTest.java
>
>
> 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

        

Mime
View raw message