cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [3/3] git commit: Skip the connection test of 127.0.0.1 in systests jaxws when running with JDK8
Date Wed, 25 Jun 2014 13:48:13 GMT
Skip the connection test of 127.0.0.1 in systests jaxws when running with JDK8


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

Branch: refs/heads/master
Commit: 0652be3b049bb06e90f93eaac8cbe6baf0db785d
Parents: 38420ba
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Wed Jun 25 21:47:47 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Jun 25 21:47:47 2014 +0800

----------------------------------------------------------------------
 .../handlers/SpringConfiguredAutoRewriteSoapAddressTest.java  | 7 +++++++
 .../SpringConfiguredNoAutoRewriteSoapAddressTest.java         | 6 ++++++
 2 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/0652be3b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
index 8ecf1d1..d5d7d94 100644
--- a/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
+++ b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
@@ -23,6 +23,7 @@ import java.util.List;
 
 import org.apache.cxf.testutil.common.TestUtil;
 import org.apache.handlers.AddNumbers;
+
 import org.junit.Test;
 
 /**
@@ -50,6 +51,12 @@ public class SpringConfiguredAutoRewriteSoapAddressTest
         assertEquals(1, serviceUrls.size());
         assertEquals("http://localhost:" + port + "/SpringEndpoint", serviceUrls.get(0));
 
+        String version = System.getProperty("java.version");
+        if (version.startsWith("1.8")) {
+            // Just skip the test as "127.0.0.1" doesn't work in JDK8
+            return;
+        }
+        
         serviceUrls = findAllServiceUrlsFromWsdl("127.0.0.1", port);
         assertEquals(1, serviceUrls.size());
         assertEquals("http://127.0.0.1:" + port + "/SpringEndpoint", serviceUrls.get(0));

http://git-wip-us.apache.org/repos/asf/cxf/blob/0652be3b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
----------------------------------------------------------------------
diff --git a/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
index 1c8847a..3bc724f 100644
--- a/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
+++ b/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
@@ -23,6 +23,7 @@ import java.util.List;
 
 import org.apache.cxf.testutil.common.TestUtil;
 import org.apache.handlers.AddNumbers;
+
 import org.junit.Test;
 
 /**
@@ -51,6 +52,11 @@ public class SpringConfiguredNoAutoRewriteSoapAddressTest
         assertEquals(1, serviceUrls.size());
         assertEquals("http://localhost:" + port + "/SpringEndpoint", serviceUrls.get(0));
 
+        String version = System.getProperty("java.version");
+        if (version.startsWith("1.8")) {
+            // Just skip the test as "127.0.0.1" doesn't work in JDK8
+            return;
+        }
         serviceUrls = findAllServiceUrlsFromWsdl("127.0.0.1", port);
         assertEquals(1, serviceUrls.size());
         assertEquals("http://localhost:" + port + "/SpringEndpoint", serviceUrls.get(0));


Mime
View raw message