This is an automated email from the ASF dual-hosted git repository.
coheigea 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 3123c1a52bc Use a free port not 8080 for SeBootstrapTest (#3405)
3123c1a52bc is described below
commit 3123c1a52bc3e9d27fe0aac46bf5b6bf9cc2b2db
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Fri Aug 28 10:17:34 2026 +0100
Use a free port not 8080 for SeBootstrapTest (#3405)
---
.../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);