Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-934

Body remains the same with InOnly exchange pattern.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.3.0, 4.4.0
    • None
    • camel-nmr
    • None

    Description

      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"));
                  }
              };
          }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            szhemzhitsky Sergey Zhemzhitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: