You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/22 08:32:00 UTC
[jira] [Work logged] (CAMEL-13096) MockEndpoint may not respect
expected minimum message count
[ 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:
users@infra.apache.org
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)