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 2020/11/18 07:22:16 UTC
[camel] 03/05: CAMEL-15836 - Camel-AWS2-SNS: enable autowire on the
SNS Client, fixed tests
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 960159d520306cd1101f4fdc2b1d9cdf5e22d0f9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 18 08:03:17 2020 +0100
CAMEL-15836 - Camel-AWS2-SNS: enable autowire on the SNS Client, fixed tests
---
.../component/aws2/sns/SNSComponentClientRegistryTest.java | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/components/camel-aws2-sns/src/test/java/org/apache/camel/component/aws2/sns/SNSComponentClientRegistryTest.java b/components/camel-aws2-sns/src/test/java/org/apache/camel/component/aws2/sns/SNSComponentClientRegistryTest.java
index 5f6ad6b..331ee27 100644
--- a/components/camel-aws2-sns/src/test/java/org/apache/camel/component/aws2/sns/SNSComponentClientRegistryTest.java
+++ b/components/camel-aws2-sns/src/test/java/org/apache/camel/component/aws2/sns/SNSComponentClientRegistryTest.java
@@ -47,19 +47,7 @@ public class SNSComponentClientRegistryTest extends CamelTestSupport {
}
@Test
- public void createEndpointWithAutoDiscoverClientFalse() throws Exception {
-
- AmazonSNSClientMock awsSNSClient = new AmazonSNSClientMock();
- context.getRegistry().bind("awsSNSClient", awsSNSClient);
- Sns2Component component = context.getComponent("aws2-sns", Sns2Component.class);
- Sns2Endpoint endpoint = (Sns2Endpoint) component
- .createEndpoint("aws2-sns://MyTopic?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false");
-
- assertNotSame(awsSNSClient, endpoint.getConfiguration().getAmazonSNSClient());
- }
-
- @Test
- public void createEndpointWithAutoDiscoverClientTrue() throws Exception {
+ public void createEndpointWithAutowire() throws Exception {
AmazonSNSClientMock awsSNSClient = new AmazonSNSClientMock();
context.getRegistry().bind("awsSNSClient", awsSNSClient);