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

Andrea Cosentino commented on CAMEL-13642:
------------------------------------------

[https://github.com/apache/camel/commit/f91a92093aaf80db757ff0401f41dd2fc049023a#diff-1a021d74a8f7dd666b2317e8de990bcd]

 

on 2.x we have this fix

> 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: 3.0.0-M2
>            Reporter: Jonathan Vila
>            Priority: Major
>
> 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)

Reply via email to