camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CAMEL-1125) MockEndpont.expectedMinimumMessageCount() doesn't work right
Date Fri, 28 Nov 2008 07:16:06 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang reassigned CAMEL-1125:
-----------------------------------

    Assignee: Willem Jiang

> MockEndpont.expectedMinimumMessageCount() doesn't work right
> ------------------------------------------------------------
>
>                 Key: CAMEL-1125
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1125
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0, 1.4.0, 1.5.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.5.1, 2.0.0
>
>
> In MockEndpoint.assertIsSatisfied(), don't use the right counter for assertion.
> {code}      
>       if (expectedMinimumCount >= 0) {
>             int receivedCounter = getReceivedCounter();
>             assertTrue("Received message count " + receivedCounter + ", expected at least
" + expectedCount, expectedCount <= receivedCounter);
>         }
> {code}
> it should be change to 
> {code}      
>       if (expectedMinimumCount >= 0) {
>             int receivedCounter = getReceivedCounter();
>             assertTrue("Received message count " + receivedCounter + ", expected at least
" + expectedMinimumCount, expectedMinimumCount <= receivedCounter);
>         }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message