You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "José Bustamante (Jira)" <ji...@apache.org> on 2021/07/20 15:57:00 UTC
[jira] [Created] (CAMEL-16812) No camel consumer available
direct-vm routes when testing
José Bustamante created CAMEL-16812:
---------------------------------------
Summary: No camel consumer available direct-vm routes when testing
Key: CAMEL-16812
URL: https://issues.apache.org/jira/browse/CAMEL-16812
Project: Camel
Issue Type: Bug
Components: camel-core, camel-test
Affects Versions: 2.25.4
Reporter: José Bustamante
I was implementing some unit tests for our camel routes of type direct-vm (we have 2 camel contexts in our project) and I ran with this issue. I wrote [a post|https://stackoverflow.com/questions/68396907/no-camel-consumer-available-for-routes-of-type-direct-vm-when-testing] in StackOverflow, I added information there about the possible bug that I found.
When using the *adviceWith*, the *mockEndpoints* function doesn't seem to work with _direct-vm_ routes, an exception is being thrown. As a work around i'm using *weaveByToUri* and *replace*, but perhaps It should work with _mockEndpoints_ too. I'm using _mockEndpoints()_ with no parameters and __ _mockEndpoints("direct-vm:*")_ but none of them works.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)