Claus Ibsen created CAMEL-18986:
-----------------------------------

             Summary: camel-core - ProducerTemplate send exchange should set 
from endpoint if null
                 Key: CAMEL-18986
                 URL: https://issues.apache.org/jira/browse/CAMEL-18986
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 3.20.1
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 3.21.0, 4.0-M2, 4.0


These two are not the same

{code}
        @Test
        @DisplayName("This one is ok")
        @Order(2)
        public void repoCaseOk() throws Exception{
                producer1.sendBody("hello");
        }

        @Test
        @DisplayName("This one fails with 3.20.1")
        @Order(2)
        public void repoCaseFail() throws Exception{
                var exchange=
                        ExchangeBuilder
                                .anExchange(context)
                                .withBody  ("hello")
                                .build     ();
                logger.info("From endpoint: {}",exchange.getFromEndpoint());
                producer1.send(exchange);
        }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to