[
https://issues.apache.org/jira/browse/CAMEL-12202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549358#comment-16549358
]
Balazs Szeti commented on CAMEL-12202:
--------------------------------------
When you want to write unit tests calling a direct endpoint some exchange
properties may be required on the test exchange sent to the endpoint. Exchange
properties are the right way to "save variables" for later use during the route.
For example let's assume a request-reply route where we have to do
transformation both ways and we split up the route like this:
from(some kind of request-reply endpoint)
.to(direct:processRequest)
.to(direct:callSomeService)
.to(direct:prepareResponse)
It's a common requirement to somehow use fields (e.g. request id) from the
request in the response. These are typically "saved" as exchange properties in
"direct:processRequest" and are expected in "direct:prepareResponse". If we
want to write some unit tests for "direct:prepareResponse" we need to set
exchange properties on the exchange.
> FluentProducerTemplate: add withProper(y|ies) methods
> -----------------------------------------------------
>
> Key: CAMEL-12202
> URL: https://issues.apache.org/jira/browse/CAMEL-12202
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Brett E. Meyer
> Priority: Minor
> Fix For: Future
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)