This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 96af619d202d68419edecd0c899f1dead00c5a6b Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Aug 1 10:43:21 2019 +0200 CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Spring-WS --- .../apache/camel/component/spring/ws/ConsumerBreadcrumbIdTest.java | 6 ++++-- .../component/spring/ws/ConsumerExceptionPropagationRouteTest.java | 6 ++++-- .../camel/component/spring/ws/ConsumerMarshallingRouteTest.java | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerBreadcrumbIdTest.java b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerBreadcrumbIdTest.java index b5ea6da..b7a14bb 100644 --- a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerBreadcrumbIdTest.java +++ b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerBreadcrumbIdTest.java @@ -22,6 +22,8 @@ import org.apache.camel.component.spring.ws.bean.CamelEndpointMapping; import org.apache.camel.component.spring.ws.jaxb.QuoteRequest; import org.apache.camel.impl.JndiRegistry; import org.apache.camel.model.dataformat.JaxbDataFormat; +import org.apache.camel.spi.Registry; +import org.apache.camel.support.SimpleRegistry; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Before; import org.junit.Ignore; @@ -51,8 +53,8 @@ public class ConsumerBreadcrumbIdTest extends CamelTestSupport { } @Override - protected JndiRegistry createRegistry() throws Exception { - JndiRegistry registry = super.createRegistry(); + protected Registry createCamelRegistry() throws Exception { + Registry registry = new SimpleRegistry(); registry.bind("endpointMapping", this.endpointMapping); registry.bind("webServiceTemplate", this.webServiceTemplate); return registry; diff --git a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerExceptionPropagationRouteTest.java b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerExceptionPropagationRouteTest.java index ecd2fba..afff967 100644 --- a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerExceptionPropagationRouteTest.java +++ b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerExceptionPropagationRouteTest.java @@ -25,6 +25,8 @@ import org.apache.camel.Endpoint; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.spring.ws.bean.CamelEndpointMapping; import org.apache.camel.impl.JndiRegistry; +import org.apache.camel.spi.Registry; +import org.apache.camel.support.SimpleRegistry; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Before; import org.junit.Ignore; @@ -65,8 +67,8 @@ public class ConsumerExceptionPropagationRouteTest extends CamelTestSupport { } @Override - protected JndiRegistry createRegistry() throws Exception { - JndiRegistry registry = super.createRegistry(); + protected Registry createCamelRegistry() throws Exception { + Registry registry = new SimpleRegistry(); registry.bind("endpointMapping", this.endpointMapping); return registry; } diff --git a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerMarshallingRouteTest.java b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerMarshallingRouteTest.java index 4e35ed7..206e911 100644 --- a/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerMarshallingRouteTest.java +++ b/components/camel-spring-ws/src/test/java/org/apache/camel/component/spring/ws/ConsumerMarshallingRouteTest.java @@ -22,6 +22,8 @@ import org.apache.camel.component.spring.ws.jaxb.QuoteRequest; import org.apache.camel.component.spring.ws.jaxb.QuoteResponse; import org.apache.camel.impl.JndiRegistry; import org.apache.camel.model.dataformat.JaxbDataFormat; +import org.apache.camel.spi.Registry; +import org.apache.camel.support.SimpleRegistry; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Before; import org.junit.Test; @@ -49,8 +51,8 @@ public class ConsumerMarshallingRouteTest extends CamelTestSupport { } @Override - protected JndiRegistry createRegistry() throws Exception { - JndiRegistry registry = super.createRegistry(); + protected Registry createCamelRegistry() throws Exception { + Registry registry = new SimpleRegistry(); registry.bind("endpointMapping", this.endpointMapping); registry.bind("webServiceTemplate", this.webServiceTemplate); return registry;