[ 
https://issues.apache.org/jira/browse/CAMEL-13096?focusedWorklogId=188023&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-188023
 ]

ASF GitHub Bot logged work on CAMEL-13096:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Jan/19 08:31
            Start Date: 22/Jan/19 08:31
    Worklog Time Spent: 10m 
      Work Description: tdiesler commented on pull request #2725: [CAMEL-13096] 
MockEndpoint may not respect expected minimum message c…
URL: https://github.com/apache/camel/pull/2725
 
 
   …ount
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 188023)
            Time Spent: 10m
    Remaining Estimate: 0h

> MockEndpoint may not respect expected minimum message count
> -----------------------------------------------------------
>
>                 Key: CAMEL-13096
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13096
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Thomas Diesler
>            Assignee: Thomas Diesler
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> A sequence like this ...
> {code}
>             mockEndpoint.expectedMinimumMessageCount(1);
>             mockEndpoint.expectedHeaderReceived(CHANNEL, "subscriberChannel");
>             mockEndpoint.assertIsSatisfied();
> {code}
> may fail when the number received messages is > 1.
> This is because expectedHeaderReceived() implicitly sets the 
> expectedMessageCount to 1, which will take priority over 
> expectedMinimumMessageCount.
> Instead, expectedHeaderReceived should implicitly set 
> expectedMinimumMessageCount to 1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to