You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/07/30 09:45:00 UTC

[jira] [Commented] (CAMEL-16812) No camel consumer available direct-vm routes when testing

    [ https://issues.apache.org/jira/browse/CAMEL-16812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390454#comment-17390454 ] 

Claus Ibsen commented on CAMEL-16812:
-------------------------------------

Camel 2.x is not active manitained, we focus on security issues and really important bugs. A testing issue is not important.

> 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
>            Priority: Minor
>              Labels: UnitTest, camel-core, endpoint, mock
>
> 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)