This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 1fe1bf45a2 Attempt to fix 
org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses test case 
on Windows
1fe1bf45a2 is described below

commit 1fe1bf45a28127d41f0ae38e0b926c3158dcb00a
Author: Andriy Redko <[email protected]>
AuthorDate: Sat Jul 8 19:02:23 2023 -0400

    Attempt to fix 
org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses test case 
on Windows
---
 .../java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
 
b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
index eac0772155..f54b88179f 100644
--- 
a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
+++ 
b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
@@ -52,6 +52,9 @@ import org.apache.cxf.ws.discovery.wsdl.ScopesType;
 import org.junit.Assert;
 import org.junit.Test;
 
+import static org.hamcrest.CoreMatchers.not;
+import static org.hamcrest.CoreMatchers.startsWith;
+import static org.junit.Assume.assumeThat;
 
 /**
  *
@@ -85,6 +88,9 @@ public final class WSDiscoveryClientTest {
 
     @Test
     public void testMultiResponses() throws Exception {
+        assumeThat("The UDP multicast is disabled on Windows by default",
+            System.getProperties().getProperty("os.name"), 
not(startsWith("Windows")));
+
         // Disable the test on Redhat Enterprise Linux which doesn't enable 
the UDP broadcast by default
         if ("Linux".equals(System.getProperties().getProperty("os.name"))
             && System.getProperties().getProperty("os.version").indexOf("el") 
> 0) {

Reply via email to