You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2009/02/19 13:48:01 UTC
svn commit: r745839 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java
Author: janstey
Date: Thu Feb 19 12:48:01 2009
New Revision: 745839
URL: http://svn.apache.org/viewvc?rev=745839&view=rev
Log:
Fix up unit test
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java?rev=745839&r1=745838&r2=745839&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/RegExRouteTest.java Thu Feb 19 12:48:01 2009
@@ -21,13 +21,13 @@
import org.apache.camel.component.mock.MockEndpoint;
public class RegExRouteTest extends ContextTestSupport {
- String orignalBody = "Foo";
- String replacedBody = "Bar";
+ String orignalBody = "Foo and another Foo";
+ String expectedBody = "Bar and another Bar";
public void testSendingMessage() throws Exception {
MockEndpoint result = getMockEndpoint("mock:result");
- result.expectedBodiesReceived(replacedBody);
+ result.expectedBodiesReceived(expectedBody);
template.sendBody("direct:start", orignalBody);