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 2010/05/11 06:40:45 UTC
svn commit: r942998 - in
/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina:
MinaEncodingTest.java MinaProducerAnotherConcurrentTest.java
Author: ningjiang
Date: Tue May 11 04:40:44 2010
New Revision: 942998
URL: http://svn.apache.org/viewvc?rev=942998&view=rev
Log:
Try to fix the mina unit test errors on the other box
Modified:
camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaEncodingTest.java
camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaProducerAnotherConcurrentTest.java
Modified: camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaEncodingTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaEncodingTest.java?rev=942998&r1=942997&r2=942998&view=diff
==============================================================================
--- camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaEncodingTest.java (original)
+++ camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaEncodingTest.java Tue May 11 04:40:44 2010
@@ -34,7 +34,7 @@ import org.apache.camel.component.mock.M
public class MinaEncodingTest extends ContextTestSupport {
public void testTCPEncodeUTF8InputIsBytes() throws Exception {
- final String uri = "mina:tcp://localhost:9085?encoding=UTF-8&sync=false";
+ final String uri = "mina:tcp://localhost:9083?encoding=UTF-8&sync=false";
this.context.addRoutes(new RouteBuilder() {
public void configure() {
from(uri).to("mock:result");
@@ -54,7 +54,7 @@ public class MinaEncodingTest extends Co
}
public void testTCPEncodeUTF8InputIsString() throws Exception {
- final String uri = "mina:tcp://localhost:9085?encoding=UTF-8&sync=false";
+ final String uri = "mina:tcp://localhost:9084?encoding=UTF-8&sync=false";
this.context.addRoutes(new RouteBuilder() {
public void configure() {
from(uri).to("mock:result");
Modified: camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaProducerAnotherConcurrentTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaProducerAnotherConcurrentTest.java?rev=942998&r1=942997&r2=942998&view=diff
==============================================================================
--- camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaProducerAnotherConcurrentTest.java (original)
+++ camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaProducerAnotherConcurrentTest.java Tue May 11 04:40:44 2010
@@ -74,9 +74,9 @@ public class MinaProducerAnotherConcurre
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
- from("direct:start").to("mina:tcp://localhost:8080?sync=true");
+ from("direct:start").to("mina:tcp://localhost:9080?sync=true");
- from("mina:tcp://localhost:8080?sync=true").process(new Processor() {
+ from("mina:tcp://localhost:9080?sync=true").process(new Processor() {
public void process(Exchange exchange) throws Exception {
String body = exchange.getIn().getBody(String.class);
exchange.getOut().setBody("Bye " + body);