camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/3] git commit: CAMEL-7314 Fixed the test error of camel-syslog with JDK8
Date Thu, 15 May 2014 13:24:29 GMT
CAMEL-7314 Fixed the test error of camel-syslog with JDK8


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

Branch: refs/heads/master
Commit: a7ea864d23e4b47cef8056a446ea4e7344c62ee7
Parents: cfc1d8d
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Thu May 15 14:39:15 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Thu May 15 21:22:32 2014 +0800

----------------------------------------------------------------------
 .../org/apache/camel/component/syslog/SyslogSpringMinaTest.java  | 4 ++--
 .../org/apache/camel/component/syslog/SyslogSpringNettyTest.java | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a7ea864d/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringMinaTest.java
----------------------------------------------------------------------
diff --git a/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringMinaTest.java
b/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringMinaTest.java
index 8771d7f..3dff15f 100644
--- a/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringMinaTest.java
+++ b/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringMinaTest.java
@@ -39,7 +39,7 @@ public class SyslogSpringMinaTest extends CamelSpringTestSupport {
 
     @BeforeClass
     public static void initPort() {
-        serverPort = AvailablePortFinder.getNextAvailable();
+        serverPort = AvailablePortFinder.getNextAvailable(3000);
         System.setProperty("server-port", new Integer(serverPort).toString());
     }
     
@@ -59,7 +59,7 @@ public class SyslogSpringMinaTest extends CamelSpringTestSupport {
 
         DatagramSocket socket = new DatagramSocket();
         try {
-            InetAddress address = InetAddress.getByName("127.0.0.1");
+            InetAddress address = InetAddress.getByName("localhost");
             for (int i = 0; i < messageCount; i++) {
 
                 byte[] data = message.getBytes();

http://git-wip-us.apache.org/repos/asf/camel/blob/a7ea864d/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java
b/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java
index 2630b04..96cc1ee 100644
--- a/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java
+++ b/components/camel-syslog/src/test/java/org/apache/camel/component/syslog/SyslogSpringNettyTest.java
@@ -38,7 +38,7 @@ public class SyslogSpringNettyTest extends CamelSpringTestSupport {
 
     @BeforeClass
     public static void initPort() {
-        serverPort = AvailablePortFinder.getNextAvailable();
+        serverPort = AvailablePortFinder.getNextAvailable(4000);
         System.setProperty("server-port", new Integer(serverPort).toString());
     }
     
@@ -58,7 +58,7 @@ public class SyslogSpringNettyTest extends CamelSpringTestSupport {
 
         DatagramSocket socket = new DatagramSocket();
         try {
-            InetAddress address = InetAddress.getByName("127.0.0.1");
+            InetAddress address = InetAddress.getByName("localhost");
             for (int i = 0; i < messageCount; i++) {
 
                 byte[] data = message.getBytes();


Mime
View raw message