You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/10/15 10:45:57 UTC

[camel] 02/04: CAMEL-15176: Optimize component to do as much in init phase vs start phase.

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

commit 2f8c12481eb7542fb2f1fb7be652440356541b80
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Oct 15 10:19:52 2020 +0200

    CAMEL-15176: Optimize component to do as much in init phase vs start phase.
---
 .../src/test/java/org/apache/camel/component/ref/RefComponentTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/camel-core/src/test/java/org/apache/camel/component/ref/RefComponentTest.java b/core/camel-core/src/test/java/org/apache/camel/component/ref/RefComponentTest.java
index b9df214..45a80e6 100644
--- a/core/camel-core/src/test/java/org/apache/camel/component/ref/RefComponentTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/component/ref/RefComponentTest.java
@@ -31,8 +31,10 @@ public class RefComponentTest extends ContextTestSupport {
     private void setupComponent() throws Exception {
         Component comp = new DirectComponent();
         comp.setCamelContext(context);
+        comp.start();
 
         Endpoint slow = comp.createEndpoint("direct:somename");
+        slow.start();
         Consumer consumer = slow.createConsumer(new Processor() {
             public void process(Exchange exchange) throws Exception {
                 template.send("mock:result", exchange);