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/03/12 07:24:35 UTC
[camel] branch master updated: Camel-SJMS: Fixed build
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
The following commit(s) were added to refs/heads/master by this push:
new 8053b77 Camel-SJMS: Fixed build
8053b77 is described below
commit 8053b776413e3544346d3bd8ee31e3857d2b400f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 12 08:24:13 2019 +0100
Camel-SJMS: Fixed build
---
.../camel/component/sjms/SjmsEndpointConnectionSettingsTest.java | 4 ++--
.../camel/component/sjms/batch/SjmsBatchConsumerAsyncStartTest.java | 2 +-
.../org/apache/camel/component/sjms/batch/SjmsBatchConsumerTest.java | 2 +-
.../org/apache/camel/component/sjms/batch/SjmsBatchEndpointTest.java | 2 +-
.../apache/camel/component/sjms/manual/ManualBatchFromQueueTest.java | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/SjmsEndpointConnectionSettingsTest.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/SjmsEndpointConnectionSettingsTest.java
index 034b4d1..01f47fd 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/SjmsEndpointConnectionSettingsTest.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/SjmsEndpointConnectionSettingsTest.java
@@ -64,8 +64,8 @@ public class SjmsEndpointConnectionSettingsTest extends CamelTestSupport {
@Override
protected CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
- registry.put("activemq", connectionFactory);
- registry.put("connresource", connectionResource);
+ registry.bind("activemq", connectionFactory);
+ registry.bind("connresource", connectionResource);
return new DefaultCamelContext(registry);
}
}
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerAsyncStartTest.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerAsyncStartTest.java
index e12da22..65878d5 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerAsyncStartTest.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerAsyncStartTest.java
@@ -31,7 +31,7 @@ public class SjmsBatchConsumerAsyncStartTest extends SjmsBatchConsumerTest {
@Override
public CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
- registry.put("testStrategy", new ListAggregationStrategy());
+ registry.bind("testStrategy", new ListAggregationStrategy());
ConnectionFactory connectionFactory = new MockConnectionFactory(broker.getTcpConnectorUri());
SjmsComponent sjmsComponent = new SjmsComponent();
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerTest.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerTest.java
index 728d521..2553b6a 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerTest.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchConsumerTest.java
@@ -48,7 +48,7 @@ public class SjmsBatchConsumerTest extends CamelTestSupport {
@Override
public CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
- registry.put("testStrategy", new ListAggregationStrategy());
+ registry.bind("testStrategy", new ListAggregationStrategy());
// the only thing special about this MockConnectionFactor is it allows us to call returnBadSessionNTimes(int)
// which will cause the MockSession to throw an IllegalStateException <int> times before returning a valid one.
// This gives us the ability to test bad sessions
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchEndpointTest.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchEndpointTest.java
index a9f9f62..48ea65b 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchEndpointTest.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/batch/SjmsBatchEndpointTest.java
@@ -54,7 +54,7 @@ public class SjmsBatchEndpointTest extends CamelTestSupport {
@Override
protected CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
- registry.put("aggStrategy", AggregationStrategies.groupedExchange());
+ registry.bind("aggStrategy", AggregationStrategies.groupedExchange());
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
connectionFactory.setBrokerURL(broker.getTcpConnectorUri());
diff --git a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/manual/ManualBatchFromQueueTest.java b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/manual/ManualBatchFromQueueTest.java
index a88fb5a..a694a5d 100644
--- a/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/manual/ManualBatchFromQueueTest.java
+++ b/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/manual/ManualBatchFromQueueTest.java
@@ -40,7 +40,7 @@ public class ManualBatchFromQueueTest extends CamelTestSupport {
@Override
protected CamelContext createCamelContext() throws Exception {
SimpleRegistry registry = new SimpleRegistry();
- registry.put("testStrategy", new ListAggregationStrategy());
+ registry.bind("testStrategy", new ListAggregationStrategy());
CamelContext camel = new DefaultCamelContext(registry);