[
https://issues.apache.org/jira/browse/SMX4-933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Zhemzhitsky updated SMX4-933:
------------------------------------
Summary: breadcrumbId header does not work with InOut exchange pattern in
unit tests. (was: breadcrumbId header does not work with InOut exchange
pattern.)
> breadcrumbId header does not work with InOut exchange pattern in unit tests.
> ----------------------------------------------------------------------------
>
> Key: SMX4-933
> URL: https://issues.apache.org/jira/browse/SMX4-933
> Project: ServiceMix 4
> Issue Type: Bug
> Components: camel-nmr
> Affects Versions: 4.3.0, 4.4.0
> Reporter: Sergey Zhemzhitsky
>
> Here is unit test
> {code}
> package org.apache.servicemix.camel.nmr;
> import org.apache.camel.Exchange;
> import org.apache.camel.ExchangePattern;
> import org.apache.camel.builder.RouteBuilder;
> import org.junit.Test;
> public class NMRBreadCrumbIDTest extends AbstractComponentTest {
> @Test
> public void noBreadCrumbID() throws Exception {
> Exchange exchange = createExchangeWithBody("Hello World");
> template.send("direct:start", exchange);
> assertNotNull(exchange.getIn().getHeader(Exchange.BREADCRUMB_ID));
> assertNotNull(exchange.getOut().getHeader(Exchange.BREADCRUMB_ID));
> }
> @Override
> protected RouteBuilder createRouteBuilder() throws Exception {
> return new RouteBuilder() {
> @Override
> public void configure() throws Exception {
> from("direct:start")
> .to(ExchangePattern.InOut, "nmr:child")
> .to("mock:result");
> from("nmr:child")
> .setBody(constant("Bye World"));
> }
> };
> }
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira