@Test void createClientForEndpointUrl_withNullEndpoint_throwsIllegalArgumentException() { AmazonS3ClientFactory amazonS3ClientFactory = new AmazonS3ClientFactory(); AmazonS3 amazonS3 = AmazonS3ClientBuilder.standard() .withRegion(Regions.DEFAULT_REGION).build(); assertThatThrownBy( () -> amazonS3ClientFactory.createClientForEndpointUrl(amazonS3, null)) .isInstanceOf(IllegalArgumentException.class) .hasMessageContaining("Endpoint Url must not be null"); }
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);  }