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

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


The following commit(s) were added to refs/heads/4.1.x-fixes by this push:
     new 7ebeffd399b Use a free port not 8080 for SeBootstrapTest (#3405)
7ebeffd399b is described below

commit 7ebeffd399b92f36139e01706a42d0d34f86ed80
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Fri Aug 28 10:17:34 2026 +0100

    Use a free port not 8080 for SeBootstrapTest (#3405)
    
    (cherry picked from commit 3123c1a52bc3e9d27fe0aac46bf5b6bf9cc2b2db)
---
 .../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 fa7f00b6414..b03d8093e1a 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
@@ -97,7 +97,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,
@@ -148,7 +149,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