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/02/21 12:04:37 UTC

[camel] 08/11: CAMEL-14596: Move new API to ExtendedCamelContext as its not for end users

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 3c031d83623da7603eb582157ac46802421744ae
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Feb 21 11:20:39 2020 +0100

    CAMEL-14596: Move new API to ExtendedCamelContext as its not for end users
---
 .../src/test/java/org/apache/camel/impl/EndpointPrototypeTest.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/impl/EndpointPrototypeTest.java b/core/camel-core/src/test/java/org/apache/camel/impl/EndpointPrototypeTest.java
index c4523f7..8cbb681 100644
--- a/core/camel-core/src/test/java/org/apache/camel/impl/EndpointPrototypeTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/impl/EndpointPrototypeTest.java
@@ -21,6 +21,7 @@ import java.util.List;
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Endpoint;
+import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.support.LifecycleStrategySupport;
 import org.junit.Test;
@@ -44,7 +45,7 @@ public class EndpointPrototypeTest extends ContextTestSupport {
 
         // now get a prototype which should not be added
 
-        Endpoint prototype = context.getPrototypeEndpoint("mock:bar");
+        Endpoint prototype = context.adapt(ExtendedCamelContext.class).getPrototypeEndpoint("mock:bar");
         assertNotNull(prototype);
 
         // and should be started
@@ -88,7 +89,7 @@ public class EndpointPrototypeTest extends ContextTestSupport {
 
         // now get a prototype which should not be added
 
-        Endpoint prototype = context.getPrototypeEndpoint("mock:bar");
+        Endpoint prototype = context.adapt(ExtendedCamelContext.class).getPrototypeEndpoint("mock:bar");
         assertNotNull(prototype);
 
         // and should be started