camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-3578) MockEndpoint - Add feature to mock any endpoint
Date Mon, 24 Jan 2011 09:16:43 GMT

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

Claus Ibsen commented on CAMEL-3578:
------------------------------------

Camel will log at INFO level the endpoints it mocks
{code}
2011-01-24 10:13:30,720 [main           ] INFO  ceptSendToMockEndpointStrategy - Adviced endpoint
[direct://start] with mock endpoint [mock:direct:start]
2011-01-24 10:13:30,790 [main           ] INFO  ceptSendToMockEndpointStrategy - Adviced endpoint
[direct://foo] with mock endpoint [mock:direct:foo]
2011-01-24 10:13:30,978 [main           ] INFO  ceptSendToMockEndpointStrategy - Adviced endpoint
[log://foo] with mock endpoint [mock:log:foo]
{code}

> MockEndpoint - Add feature to mock any endpoint
> -----------------------------------------------
>
>                 Key: CAMEL-3578
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3578
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.7.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Unit-Testing-Route-td3284803.html
> The idea is to be able to mock any endpoint on a route and thus be able to set expectations.
> In the 2.x architecture we will have to implement this using the adviceWith as the route
must be {{re-processed}} so we can add the interceptor logic to mock
> any endpoints.
> In Camel 3.x this could be applied dynamically on the Channel.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message