[
https://issues.apache.org/jira/browse/CAMEL-13642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862887#comment-16862887
]
Andrea Cosentino commented on CAMEL-13642:
------------------------------------------
So we have this fixed on 2.x, 2.24.x and 3.x
2.23.x is the only active branch to fix eventually.
2.22.5 is the last one released for 2.22.x
2.21.x won't be released anymore
You can backport the fix to 2.23.x
> Testing for an expected Header in a MockEndpoint doesnt happen if there is no
> Exchange received
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-13642
> URL: https://issues.apache.org/jira/browse/CAMEL-13642
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.21.0
> Reporter: Jonathan Vila
> Priority: Major
> Fix For: 2.24.0
>
>
> Context
> {quote}
> When we have a MockEndpoint that expects for any header to be received, now
> there is no error raised if there is no Exchange received.
> So , it only checks for the expression if there is an Exchange, therefore the
> test doesn't fail.
> {quote}
> Where
> {quote}MockEndpoint.expectedHeaderReceived:519
> {quote}
> Fix
> {quote}Add an assert for getReceivedExchanges > 0
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)