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

coheigea pushed a commit to branch coheigea/free-port
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 2757c6a673324636ce60a2b1f013b81da8f6bbe5
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Thu Aug 27 14:33:34 2026 +0100

    Use a free port not 8080 for SeBootstrapTest
---
 .../java/org/apache/cxf/systest/jaxrs/bootstrap/SeBootstrapTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/bootstrap/SeBootstrapTest.java
 
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/bootstrap/SeBootstrapTest.java
index 1b8ac229727..72a387471d0 100644
--- 
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/bootstrap/SeBootstrapTest.java
+++ 
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/bootstrap/SeBootstrapTest.java
@@ -98,7 +98,8 @@ public class SeBootstrapTest {
     @Test
     public final void shouldBootInstanceUsingDefaults() {
         final Application application = new StaticApplication();
-        final SeBootstrap.Configuration.Builder bootstrapConfigurationBuilder 
= SeBootstrap.Configuration.builder();
+        final SeBootstrap.Configuration.Builder bootstrapConfigurationBuilder 
= SeBootstrap.Configuration.builder()
+            .port(SeBootstrap.Configuration.FREE_PORT);
         final SeBootstrap.Configuration requestedConfiguration = 
bootstrapConfigurationBuilder.build();
 
         final CompletionStage<SeBootstrap.Instance> completionStage = 
SeBootstrap.start(application,
@@ -149,7 +150,7 @@ public class SeBootstrapTest {
         final Application application = new StaticApplication();
         final SeBootstrap.Configuration.Builder bootstrapConfigurationBuilder 
= SeBootstrap.Configuration.builder();
         final SeBootstrap.Configuration requestedConfiguration = 
bootstrapConfigurationBuilder.protocol("HTTP")
-                
.host("localhost").port(SeBootstrap.Configuration.DEFAULT_PORT).rootPath("/root/path").build();
+                
.host("localhost").port(SeBootstrap.Configuration.FREE_PORT).rootPath("/root/path").build();
 
         final CompletionStage<SeBootstrap.Instance> completionStage = 
SeBootstrap.start(application,
                 requestedConfiguration);

Reply via email to