[ 
https://issues.apache.org/jira/browse/CAMEL-20731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843024#comment-17843024
 ] 

Adriano Machado edited comment on CAMEL-20731 at 5/2/24 5:13 PM:
-----------------------------------------------------------------

[~davsclaus] it fails using current 4.6.0-SNAPSHOT version.

I attached a patch file on top of the camel-spring-boot-examples repository.

You can apply it and run `mvn test camel-report:route-coverage` to replicate 
the issue.


was (Author: ammachado):
[~davsclaus] it fails using current 4.6.0-SNAPSHOT version.

> Route coverage fails on routes with multiple doCatch blocks
> -----------------------------------------------------------
>
>                 Key: CAMEL-20731
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20731
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 4.0.3
>            Reporter: Adriano Machado
>            Priority: Minor
>         Attachments: multiple-catch-blocks-reproducer.patch
>
>
> Routes containing `doTry` with multiple `doCatch` blocks fails when running 
> the code coverate mojo.  An example:
> ```
> <route>
>   <from uri="direct:start"/>
>   <doTry>
>     <process ref="processorFail"/>
>     <to uri="mock:result"/>
>     <doCatch>
>       <exception>java.io.IOException</exception>
>       <to uri="mock:catch"/>
>     </doCatch>
>     <doCatch>
>       <exception>java.lang.IllegalStateException</exception>
>       <to uri="mock:catch"/>
>     </doCatch>
>     <doFinally>
>        <to uri="mock:finally"/>
>     </doFinally>
>   </doTry>
> </route>```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to