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 d0af489e0185a5e78406983bc1cb5ecb93cbfd55 Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Nov 18 10:55:07 2020 +0100 CAMEL-15836 - Camel-AWS2-STS: enable autowire on the STS Client, fixed tests --- .../aws2/sts/STS2ComponentClientRegistryTest.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java b/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java index b075ee9..4f7355c 100644 --- a/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java +++ b/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java @@ -47,19 +47,7 @@ public class STS2ComponentClientRegistryTest extends CamelTestSupport { } @Test - public void createEndpointWithAutoDiscoverClientFalse() throws Exception { - - AmazonSTSClientMock clientMock = new AmazonSTSClientMock(); - context.getRegistry().bind("amazonStsClient", clientMock); - STS2Component component = context.getComponent("aws2-sts", STS2Component.class); - STS2Endpoint endpoint = (STS2Endpoint) component - .createEndpoint("aws2-sts://TestDomain?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false"); - - assertNotSame(clientMock, endpoint.getConfiguration().getStsClient()); - } - - @Test - public void createEndpointWithAutoDiscoverClientTrue() throws Exception { + public void createEndpointWithAutowire() throws Exception { AmazonSTSClientMock clientMock = new AmazonSTSClientMock(); context.getRegistry().bind("amazonStsClient", clientMock);
