@Test void createClientForEndpointUrl_withProxiedClient_createClientForCustomRegion() { AmazonS3ClientFactory amazonS3ClientFactory = new AmazonS3ClientFactory(); AmazonS3 amazonS3 = AmazonS3ProxyFactory.createProxy( AmazonS3ClientBuilder.standard().withRegion(Regions.EU_WEST_1).build()); AmazonS3 newClient = amazonS3ClientFactory.createClientForEndpointUrl(amazonS3, "https: assertThat(newClient.getRegionName()).isEqualTo(Regions.EU_CENTRAL_1.getName()); }
public AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl) { return createClientForEndpointUrl(prototype, endpointUrl, null); }
AmazonS3ClientFactory { public AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl) { return createClientForEndpointUrl(prototype, endpointUrl, null); } }
AmazonS3ClientFactory { public AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl) { return createClientForEndpointUrl(prototype, endpointUrl, null); } AmazonS3ClientFactory(); }
AmazonS3ClientFactory { public AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl) { return createClientForEndpointUrl(prototype, endpointUrl, null); } AmazonS3ClientFactory(); AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl); }
AmazonS3ClientFactory { public AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl) { return createClientForEndpointUrl(prototype, endpointUrl, null); } AmazonS3ClientFactory(); AmazonS3 createClientForEndpointUrl(AmazonS3 prototype, String endpointUrl);  }