radio042 opened a new issue #3379:
URL: https://github.com/apache/camel-quarkus/issues/3379


   Dear all, 
   
   I have problems testing routes with CamelTestSupport in a Quarkus project 
when a transacted() definition is part of the route. 
   
   **Describe the bug**
   
   The exchanges do not seem to reach the endpoints, when "transacted()" is 
part of the route.
   
   Snippets:
   
   - Route: 
   ``` 
   from("direct:in").transacted().to("mock:out");
   ```
   - Test:
    ```
   MockEndpoint mockEndpoint = getMockEndpoint("mock:out");
   mockEndpoint.expectedMessageCount(1);
   template.sendBody("direct:in", "hello");
   assertMockEndpointsSatisfied();
   ```
   
   Here's a Gist of my test setup and the pom.xml: 
https://gist.github.com/radio042/b71717d5634eaa634c9affc1021eacfb#file-transactedtest-java
 
   
   **Expected behavior** 
   
   Messages sent to a route with a transacted() definition using 
CamelTestSupport in a Quarkus project reach the endpoints and the test is green.
   
   **Actual behavior**
   
   The test fails with `java.lang.AssertionError: mock://out Received message 
count. Expected: <1> but was: <0>`
   
   **How to Reproduce?**
   
   Run the test from the gist inside a Quarkus project
   


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to