You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/11/28 08:16:05 UTC
[jira] Created: (CAMEL-1125)
MockEndpont.expectedMinimumMessageCount() doesn't work right
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.
[jira] Resolved: (CAMEL-1125)
MockEndpont.expectedMinimumMessageCount() doesn't work right
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1125.
---------------------------------
Resolution: Fixed
Applied this patch into trunk and camel-1.x branch.
> 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.
[jira] Assigned: (CAMEL-1125)
MockEndpont.expectedMinimumMessageCount() doesn't work right
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ 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.