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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d20172ff8098fa5e9f3b65b07154ad36950de08e
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Mon Mar 18 17:41:25 2024 +0100

    CAMEL-20477: allow using a fixed port for the Artemis VM service
---
 .../camel/test/infra/artemis/services/ArtemisVMService.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/ArtemisVMService.java
 
b/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/ArtemisVMService.java
index 6a916cef8a3..748a7e8b14e 100644
--- 
a/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/ArtemisVMService.java
+++ 
b/test-infra/camel-test-infra-artemis/src/test/java/org/apache/camel/test/infra/artemis/services/ArtemisVMService.java
@@ -30,11 +30,23 @@ public class ArtemisVMService extends 
AbstractArtemisEmbeddedService {
 
     private String brokerURL;
 
+    public ArtemisVMService() {
+    }
+
+    protected ArtemisVMService(int port) {
+        super(port);
+    }
+
     /**
      * This class should rarely be used. It is intended for some tests that 
check for reliability operations and require
      * using the same broker ID between start/stop cycles.
      */
     public static class ReusableArtemisVMService extends ArtemisVMService {
+
+        public ReusableArtemisVMService(int port) {
+            super(port);
+        }
+
         @Override
         protected int computeBrokerId() {
             return 0;

Reply via email to