Body remains the same with InOnly exchange pattern.
---------------------------------------------------

                 Key: SMX4-934
                 URL: https://issues.apache.org/jira/browse/SMX4-934
             Project: ServiceMix 4
          Issue Type: Bug
          Components: camel-nmr
    Affects Versions: 4.3.0, 4.4.0
            Reporter: Sergey Zhemzhitsky


{code}
package org.apache.servicemix.camel.nmr;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Test;

public class NMRBodyTest extends AbstractComponentTest {

    @Test
    public void noBody() throws Exception {
        MockEndpoint result = getMockEndpoint("mock:result");
        result.expectedBodiesReceived("Bye World");
        sendBody("direct:start", "Hello World");
        assertMockEndpointsSatisfied();
    }

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:start")
                    .to("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

        

Reply via email to