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.5.0, 1.4.0, 1.3.0
Reporter: 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.