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 18449a5fe8e09d4c44c97e24c116c8bec7adb516 Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Nov 18 15:05:56 2020 +0100 CAMEL-15836 - Camel-AWS2-Athena: enable autowire on the Athena Client, fixed tests --- .../aws2/athena/AthenaComponentClientRegistryTest.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/components/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java b/components/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java index 4403bf5..b1e1b06 100644 --- a/components/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java +++ b/components/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java @@ -43,18 +43,7 @@ public class AthenaComponentClientRegistryTest extends CamelTestSupport { } @Test - public void createEndpointWithAutoDiscoverClientFalse() throws Exception { - AmazonAthenaClientMock clientMock = new AmazonAthenaClientMock(); - context.getRegistry().bind("amazonAthenaClient", clientMock); - Athena2Component component = context.getComponent("aws2-athena", Athena2Component.class); - Athena2Endpoint endpoint = (Athena2Endpoint) component - .createEndpoint("aws2-athena://label?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false"); - - assertNotSame(clientMock, endpoint.getConfiguration().getAmazonAthenaClient()); - } - - @Test - public void createEndpointWithAutoDiscoverClientTrue() throws Exception { + public void createEndpointWithAutowire() throws Exception { AmazonAthenaClientMock clientMock = new AmazonAthenaClientMock(); context.getRegistry().bind("amazonAthenaClient", clientMock); Athena2Component component = context.getComponent("aws2-athena", Athena2Component.class);
