Repository: cxf Updated Branches: refs/heads/2.7.x-fixes 27dddadcf -> 741ea9b63 refs/heads/master cc1467c6d -> 0d63e9579
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/741ea9b6 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/741ea9b6 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/741ea9b6 Branch: refs/heads/2.7.x-fixes Commit: 741ea9b63a50d6de1e90e285a55ecd92e6b04874 Parents: 27dddad Author: Willem Jiang <willem.ji...@gmail.com> Authored: Wed Mar 5 16:32:46 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Wed Mar 5 16:32:46 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/741ea9b6/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);