You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gn...@apache.org on 2026/03/13 21:09:52 UTC
(cxf) 01/01: Fix AttachmentMtomChunkingTest port collision with AttachmentChunkingTest
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch fix/mtom-chunking-port-collision
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit 2555f2a3875379e534b671928aaa6b774c54126d
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Mar 13 22:09:41 2026 +0100
Fix AttachmentMtomChunkingTest port collision with AttachmentChunkingTest
Both tests have an inner class named DownloadServer and use
allocatePort(DownloadServer.class). Since TestUtil stores ports under
the simple class name, both tests get the same port, causing
ListenerRegistrationException when the second test tries to publish
its endpoint.
Fix by using allocatePort(AttachmentMtomChunkingTest.class) to get a
distinct port.
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
.../java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java
index c4da85e9003..3e939f5c6b9 100644
--- a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java
+++ b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/AttachmentMtomChunkingTest.java
@@ -44,7 +44,7 @@ import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
public class AttachmentMtomChunkingTest extends AbstractAttachmentChunkingTest {
- private static final String PORT = allocatePort(DownloadServer.class);
+ private static final String PORT = allocatePort(AttachmentMtomChunkingTest.class);
private static final Logger LOG = LogUtils.getLogger(AttachmentMtomChunkingTest.class);
public static class DownloadServer extends AbstractBusTestServerBase {