This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a8a51e5b6252 Avoid flakiness of CxfTimeoutTest
a8a51e5b6252 is described below
commit a8a51e5b62523e5902a45918dc4e9775ab68479d
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Jul 9 17:02:57 2026 +0200
Avoid flakiness of CxfTimeoutTest
as we can see here
https://develocity.apache.org/scans/tests?search.rootProjectNames=camel&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.component.cxf.CxfTimeoutTest
, this test is flaky.
it also sometimes cannot even be initialized with
```
jakarta.xml.ws.WebServiceException:
org.apache.cxf.endpoint.ListenerRegistrationException: Soap 1.1 endpoint
already registered on address
http://localhost:29753/CxfTimeoutTest/SoapContext/SoapPort
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:373)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
at
org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:130)
at jakarta.xml.ws.Endpoint.publish(Endpoint.java:224)
at
org.apache.camel.component.cxf.CxfTimeoutTest.startService(CxfTimeoutTest.java:57)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.apache.cxf.endpoint.ListenerRegistrationException: Soap
1.1 endpoint already registered on address
http://localhost:29753/CxfTimeoutTest/SoapContext/SoapPort
at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:923)
at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:130)
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:364)
... 6 more
```
Attempt to enforce this test to play in isolation to avoid side effect
Signed-off-by: Aurélien Pupier <[email protected]>
---
.../src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
index 29b56a394a6e..0762cec09426 100644
---
a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
+++
b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
@@ -36,6 +36,7 @@ import
org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import org.apache.hello_world_soap_http.Greeter;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.parallel.Isolated;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
@@ -44,6 +45,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
+@Isolated
public class CxfTimeoutTest extends CamelSpringTestSupport {
protected static final String GREET_ME_OPERATION = "greetMe";