camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r945541 - /camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java
Date Tue, 18 May 2010 08:50:15 GMT
Author: davsclaus
Date: Tue May 18 08:50:14 2010
New Revision: 945541

URL: http://svn.apache.org/viewvc?rev=945541&view=rev
Log:
Fixed test

Modified:
    camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java

Modified: camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java?rev=945541&r1=945540&r2=945541&view=diff
==============================================================================
--- camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java
(original)
+++ camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaVMFileTcpTest.java
Tue May 18 08:50:14 2010
@@ -17,8 +17,6 @@
 package org.apache.camel.component.mina;
 
 import org.apache.camel.ContextTestSupport;
-import org.apache.camel.Exchange;
-import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 
@@ -29,7 +27,7 @@ public class MinaVMFileTcpTest extends C
 
     public void testMinaRoute() throws Exception {
         MockEndpoint endpoint = getMockEndpoint("mock:results");
-        endpoint.expectedMessageCount(2);
+        endpoint.expectedMessageCount(1);
         endpoint.message(0).body().startsWith("Hello World");
 
         assertMockEndpointsSatisfied();
@@ -39,11 +37,11 @@ public class MinaVMFileTcpTest extends C
         return new RouteBuilder() {
             public void configure() {
                 // lets setup a server
-                from("mina:vm://localhost:9123?sync=false&textline=true").to("mock:results");
+                from("mina:vm://localhost:9123?sync=false&textline=true")
+                    .to("mock:results");
 
-                from("file:src/test/data?noop=true&delay=2000")
-                    .to("mina:vm://localhost:9123?sync=false&textline=true");
-                    
+                from("file:src/test/data?noop=true&fileName=message1.txt").
+                    to("mina:vm://localhost:9123?sync=false&textline=true");
             }
         };
     }



Mime
View raw message