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

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


The following commit(s) were added to refs/heads/main by this push:
     new e133296f6e63 CAMEL-25234: camel-jms - use a dedicated queue in 
JmsComponentIbmMQTest
e133296f6e63 is described below

commit e133296f6e636db07a1ffab00ddebe0504017a65
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Nov 20 15:09:27 2026 +0100

    CAMEL-25234: camel-jms - use a dedicated queue in JmsComponentIbmMQTest
    
    JmsComponentIbmMQTest and JmsReplyToIbmMQTest both used DEV.QUEUE.1 on
    the shared singleton IBM MQ broker. A consumer could therefore receive
    the message sent by the other test, which has no "cheese" header, making
    the mock assertion fail with "header(cheese) == 123 evaluated as: null == 
123".
    
    Use DEV.QUEUE.3 (defined by default in the IBM MQ developer image) in
    JmsComponentIbmMQTest so each IBM MQ test has its own queue.
    
    Co-authored-by: IBM Bob 2.2.1
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../java/org/apache/camel/component/jms/JmsComponentIbmMQTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentIbmMQTest.java
 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentIbmMQTest.java
index 9aadd27d0697..af3d4a9996e1 100644
--- 
a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentIbmMQTest.java
+++ 
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentIbmMQTest.java
@@ -62,9 +62,9 @@ public class JmsComponentIbmMQTest extends CamelTestSupport {
             @Override
             public void configure() {
                 from("direct:start")
-                        .to("jms:queue:DEV.QUEUE.1");
+                        .to("jms:queue:DEV.QUEUE.3");
 
-                from("jms:queue:DEV.QUEUE.1")
+                from("jms:queue:DEV.QUEUE.3")
                         .routeId("consumer")
                         .process(exchange -> exchange.getIn().setBody("Hello 
there!"))
                         .to("mock:result");

Reply via email to