This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new d941d05 CAMEL-16279: camel-core - Optimize core to reduce object allocations by pooloing reusable tasks in the routing engine. d941d05 is described below commit d941d058a1c274466e77aad6f3bae54b8b907f95 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Mar 10 19:15:45 2021 +0100 CAMEL-16279: camel-core - Optimize core to reduce object allocations by pooloing reusable tasks in the routing engine. --- .../org/apache/camel/component/salesforce/SalesforceConsumerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceConsumerTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceConsumerTest.java index 603e5db..9d37d70 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceConsumerTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceConsumerTest.java @@ -107,7 +107,7 @@ public class SalesforceConsumerTest { when(context.adapt(ExtendedCamelContext.class)).thenReturn(context); when(context.getExchangeFactory()).thenReturn(exchangeFactory); when(exchangeFactory.newExchangeFactory(any())).thenReturn(exchangeFactory); - when(exchangeFactory.create(endpoint, false)).thenReturn(exchange); + when(exchangeFactory.create(endpoint, true)).thenReturn(exchange); when(exchange.adapt(ExtendedExchange.class)).thenReturn(exchange); when(exchange.getIn()).thenReturn(in); final SalesforceComponent component = mock(SalesforceComponent.class);