You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/05/02 16:00:00 UTC
[jira] [Commented] (CAMEL-20731) Route coverage fails on routes with multiple doCatch blocks
[ https://issues.apache.org/jira/browse/CAMEL-20731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843007#comment-17843007 ]
Claus Ibsen commented on CAMEL-20731:
-------------------------------------
Can you try with latest 4.4.x and/or 4.5.0 release
> 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
>
> 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)