camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: Fixed another 2 unit-tests by camel-mina2 making use of hard-coded ports which could break tests on the CI-Server and removed couple of unused imports.
Date Sat, 16 Nov 2013 23:58:52 GMT
Updated Branches:
  refs/heads/camel-2.11.x 286fc1825 -> 0d5420706


Fixed another 2 unit-tests by camel-mina2 making use of hard-coded ports which could break
tests on the CI-Server and removed couple of unused imports.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0d542070
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0d542070
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0d542070

Branch: refs/heads/camel-2.11.x
Commit: 0d5420706dd0bcc5d83ab291e6a1694591bd68ee
Parents: 286fc18
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Sun Nov 17 00:53:04 2013 +0100
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Sun Nov 17 00:57:01 2013 +0100

----------------------------------------------------------------------
 .../component/mina2/Mina2SslContextParametersUdpTest.java      | 1 -
 .../apache/camel/component/mina2/Mina2UdpConcurrentTest.java   | 6 ++----
 .../java/org/apache/camel/component/mina2/Mina2UdpTest.java    | 6 ++----
 .../component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java | 1 -
 4 files changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0d542070/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2SslContextParametersUdpTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2SslContextParametersUdpTest.java
b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2SslContextParametersUdpTest.java
index b47f83e..f1fab7c 100644
--- a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2SslContextParametersUdpTest.java
+++ b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2SslContextParametersUdpTest.java
@@ -22,7 +22,6 @@ import java.net.InetAddress;
 
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.util.IOHelper;
 import org.junit.Test;
 
 /**

http://git-wip-us.apache.org/repos/asf/camel/blob/0d542070/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpConcurrentTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpConcurrentTest.java
b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpConcurrentTest.java
index 1511701..e5dd4ea 100644
--- a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpConcurrentTest.java
+++ b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpConcurrentTest.java
@@ -22,7 +22,6 @@ import java.net.InetAddress;
 
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.util.IOHelper;
 import org.junit.Test;
 
 /**
@@ -53,8 +52,7 @@ public class Mina2UdpConcurrentTest extends BaseMina2Test {
                 String text = "Hello Message: " + Integer.toString(i);
                 byte[] data = text.getBytes();
 
-                //DatagramPacket packet = new DatagramPacket(data, data.length, address,
getPort());
-                DatagramPacket packet = new DatagramPacket(data, data.length, address, 10111);
+                DatagramPacket packet = new DatagramPacket(data, data.length, address, getPort());
                 socket.send(packet);
             }
             Thread.sleep(2000);
@@ -67,7 +65,7 @@ public class Mina2UdpConcurrentTest extends BaseMina2Test {
         return new RouteBuilder() {
             public void configure() {
                 // we use un-ordered to allow processing the UDP messages in any order from
same client
-                from("mina2:udp://127.0.0.1:10111?sync=false&minaLogger=true&orderedThreadPoolExecutor=false")
+                from("mina2:udp://127.0.0.1:" + getPort() + "?sync=false&minaLogger=true&orderedThreadPoolExecutor=false")
                         .delay(1000)
                         .to("mock:result");
             }

http://git-wip-us.apache.org/repos/asf/camel/blob/0d542070/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpTest.java
b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpTest.java
index 3ed8452..e192e43 100644
--- a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpTest.java
+++ b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpTest.java
@@ -22,7 +22,6 @@ import java.net.InetAddress;
 
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.util.IOHelper;
 import org.junit.Test;
 
 /**
@@ -53,8 +52,7 @@ public class Mina2UdpTest extends BaseMina2Test {
                 String text = "Hello Message: " + Integer.toString(i);
                 byte[] data = text.getBytes();
 
-                //DatagramPacket packet = new DatagramPacket(data, data.length, address,
getPort());
-                DatagramPacket packet = new DatagramPacket(data, data.length, address, 10111);
+                DatagramPacket packet = new DatagramPacket(data, data.length, address, getPort());
                 socket.send(packet);
             }
             Thread.sleep(2000);
@@ -66,7 +64,7 @@ public class Mina2UdpTest extends BaseMina2Test {
     protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
-                from("mina2:udp://127.0.0.1:10111?sync=false&minaLogger=true").to("mock:result");
+                from("mina2:udp://127.0.0.1:" + getPort() + "?sync=false&minaLogger=true").to("mock:result");
             }
         };
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/0d542070/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java
b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java
index aba1438..f8052ce 100644
--- a/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java
+++ b/components/camel-mina2/src/test/java/org/apache/camel/component/mina2/Mina2UdpWithInOutUsingPlainSocketTest.java
@@ -23,7 +23,6 @@ import java.net.InetAddress;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.util.IOHelper;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;


Mime
View raw message