You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/11/28 08:18:07 UTC
svn commit: r721360 - in
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel:
builder/ValueBuilder.java component/mock/MockEndpoint.java
Author: ningjiang
Date: Thu Nov 27 23:18:07 2008
New Revision: 721360
URL: http://svn.apache.org/viewvc?rev=721360&view=rev
Log:
CAMEL-1125 Fixed the bug of MockEndpont.expectedMinimumMessageCount() doesn't work
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java?rev=721360&r1=721359&r2=721360&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java Thu Nov 27 23:18:07 2008
@@ -194,7 +194,7 @@
// -------------------------------------------------------------------------
/**
- * A stategy method to allow derived classes to deal with the newly created
+ * A strategy method to allow derived classes to deal with the newly created
* predicate in different ways
*/
protected Predicate onNewPredicate(Predicate predicate) {
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java?rev=721360&r1=721359&r2=721360&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java Thu Nov 27 23:18:07 2008
@@ -242,7 +242,7 @@
if (expectedMinimumCount >= 0) {
int receivedCounter = getReceivedCounter();
- assertTrue("Received message count " + receivedCounter + ", expected at least " + expectedCount, expectedCount <= receivedCounter);
+ assertTrue("Received message count " + receivedCounter + ", expected at least " + expectedMinimumCount, expectedMinimumCount <= receivedCounter);
}
for (Runnable test : tests) {