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 08:58:52 UTC

[camel] 03/06: CAMEL-15836 - Camel-AWS2-SQS: enable autowire on the SQS 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 f02042d6255f0bc5d8ec4499b181bc5ec732958e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 18 08:32:26 2020 +0100

    CAMEL-15836 - Camel-AWS2-SQS: enable autowire on the SQS Client, fixed tests
---
 .../aws2/sqs/SqsComponentClientRegistryTest.java         | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/components/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/SqsComponentClientRegistryTest.java b/components/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/SqsComponentClientRegistryTest.java
index 53c892e..01629e3 100644
--- a/components/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/SqsComponentClientRegistryTest.java
+++ b/components/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/SqsComponentClientRegistryTest.java
@@ -45,21 +45,9 @@ public class SqsComponentClientRegistryTest extends CamelTestSupport {
             Sqs2Endpoint endpoint = (Sqs2Endpoint) component.createEndpoint("aws2-sqs://MyQueue");
         });
     }
-
-    @Test
-    public void createEndpointWithAutoDiscoveryClientFalse() throws Exception {
-
-        AmazonSQSClientMock awsSQSClient = new AmazonSQSClientMock();
-        context.getRegistry().bind("awsSQSClient", awsSQSClient);
-        Sqs2Component component = context.getComponent("aws2-sqs", Sqs2Component.class);
-        Sqs2Endpoint endpoint = (Sqs2Endpoint) component
-                .createEndpoint("aws2-sqs://MyQueue?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false");
-
-        assertNotSame(awsSQSClient, endpoint.getConfiguration().getAmazonSQSClient());
-    }
-
+    
     @Test
-    public void createEndpointWithAutoDiscoveryClientTrue() throws Exception {
+    public void createEndpointWithAutowire() throws Exception {
 
         AmazonSQSClientMock awsSQSClient = new AmazonSQSClientMock();
         context.getRegistry().bind("awsSQSClient", awsSQSClient);