cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: Disable testBroadcastUDP test in UDPTransportTest when it is ran inside of a REL box
Date Wed, 05 Mar 2014 08:34:34 GMT
Disable testBroadcastUDP test in UDPTransportTest when it is ran inside of a REL box


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

Branch: refs/heads/master
Commit: 0d63e9579f7079654dea7c55db6abcd3d42db966
Parents: cc1467c
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Wed Mar 5 16:32:46 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Mar 5 16:33:48 2014 +0800

----------------------------------------------------------------------
 .../org/apache/cxf/transport/udp/UDPTransportTest.java    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/0d63e957/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
----------------------------------------------------------------------
diff --git a/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
b/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
index a3e7960..00e9b36 100644
--- a/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
+++ b/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
@@ -69,6 +69,13 @@ public class UDPTransportTest extends AbstractBusClientServerTestBase {
     }
     @Test
     public void testBroadcastUDP() throws Exception {
+        // Disable the test on Redhat Enterprise Linux which doesn't enable the UDP broadcast
by default
+        if (System.getProperties().getProperty("os.name").equals("Linux") 
+            && System.getProperties().getProperty("os.version").indexOf("el") >
0) {
+            System.out.println("Skipping broadcast test for REL");
+            return;
+        }
+        
         Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
         int count = 0;
         while (interfaces.hasMoreElements()) {
@@ -83,8 +90,7 @@ public class UDPTransportTest extends AbstractBusClientServerTestBase {
             System.out.println("Skipping broadcast test");
             return;
         }
-
-        
+            
         JaxWsProxyFactoryBean fact = new JaxWsProxyFactoryBean(); 
         fact.setAddress("udp://:" + PORT + "/foo");
         Greeter g = fact.create(Greeter.class);


Mime
View raw message