You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/07/30 15:51:23 UTC
[camel] 01/02: CAMEL-13801 - camel3 - Use @BindToRegistry wherever
possible, Camel-Reactor
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 63b1b4ca75d120b4790d93d3bee0bc2c3f6bc8c0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 30 17:49:27 2019 +0200
CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Reactor
---
.../component/reactor/engine/ReactorStreamsServiceTest.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/components/camel-reactor/src/test/java/org/apache/camel/component/reactor/engine/ReactorStreamsServiceTest.java b/components/camel-reactor/src/test/java/org/apache/camel/component/reactor/engine/ReactorStreamsServiceTest.java
index af56887..b399c07 100644
--- a/components/camel-reactor/src/test/java/org/apache/camel/component/reactor/engine/ReactorStreamsServiceTest.java
+++ b/components/camel-reactor/src/test/java/org/apache/camel/component/reactor/engine/ReactorStreamsServiceTest.java
@@ -25,6 +25,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Function;
+import org.apache.camel.BindToRegistry;
import org.apache.camel.Exchange;
import org.apache.camel.FailedToStartRouteException;
import org.apache.camel.ProducerTemplate;
@@ -44,14 +45,8 @@ public class ReactorStreamsServiceTest extends ReactorStreamsServiceTestSupport
// ************************************************
// Setup
// ************************************************
-
- @Override
- protected JndiRegistry createRegistry() throws Exception {
- JndiRegistry registry = super.createRegistry();
- registry.bind("hello", new SampleBean());
-
- return registry;
- }
+ @BindToRegistry("hello")
+ private SampleBean bean = new SampleBean();
public static class SampleBean {
public String hello(String name) {