gnodet opened a new pull request, #22134: URL: https://github.com/apache/camel/pull/22134
## Summary - Use per-class queue names (`inbox.<ClassName>`, `outbox.<ClassName>`) to isolate the base class from the XA subclass when sharing the same embedded Artemis broker - Drain stale messages from outbox and DLQ in `checkInitialState()` to prevent inter-test interference - Extract queue name methods (`inboxQueue()`, `outboxQueue()`, `dlqQueue()`) so the XA subclass automatically gets its own isolated queues via `getClass().getSimpleName()` ## Root cause Both `FromJmsToJdbcIdempotentConsumerToJmsTest` and its XA subclass share a singleton embedded Artemis broker with hardcoded queue names (`inbox`, `outbox`, `DLQ`). Messages from one class's test methods leak into the other class's runs, causing assertions like "expected null but was DONE-B" and "expected B but was XML content". ## Test plan - [x] Compiles locally - [x] Same pattern as CAMEL-21917 fix for camel-jms transacted tests (per-class DLQ names) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
