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 58ba7fed303cd8cded280d354e5b7a6ad8c29c21 Author: Andrea Cosentino <[email protected]> AuthorDate: Sat Nov 14 18:34:44 2020 +0100 CAMEL-15836 - Camel-AWS2-MQ: enable autowire on the MQ client, fixed test --- .../component/aws2/mq/MQComponentClientRegistryTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/components/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQComponentClientRegistryTest.java b/components/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQComponentClientRegistryTest.java index 22be146..64ddf47 100644 --- a/components/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQComponentClientRegistryTest.java +++ b/components/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQComponentClientRegistryTest.java @@ -20,7 +20,6 @@ import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -47,18 +46,6 @@ public class MQComponentClientRegistryTest extends CamelTestSupport { } @Test - public void createEndpointWithAutoDiscoverFalse() throws Exception { - - AmazonMQClientMock awsMQClient = new AmazonMQClientMock(); - context.getRegistry().bind("awsMQClient", awsMQClient); - MQ2Component component = context.getComponent("aws2-mq", MQ2Component.class); - MQ2Endpoint endpoint = (MQ2Endpoint) component - .createEndpoint("aws2-mq://MyQueue?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false"); - - assertNotSame(awsMQClient, endpoint.getConfiguration().getAmazonMqClient()); - } - - @Test public void createEndpointWithAutoDiscoverTrue() throws Exception { AmazonMQClientMock awsMQClient = new AmazonMQClientMock();
