public class AwsClientBuilderTest extends Object
Constructor and Description |
---|
AwsClientBuilderTest() |
public void syncClientBuilder()
public void credentialsNotExplicitlySet_UsesDefaultCredentialChain() throws Exception
Exception
public void regionProvidedExplicitly_WhenRegionNotFoundInMetadata_ThrowsIllegalArgumentException() throws Exception
Exception
public void regionProvidedByChain_WhenRegionNotFoundInMetadata_ThrowsIllegalArgumentException()
AwsRegionProvider
implementation. We mock the provider to yield consistent
results for the tests.public void credentialsExplicitlySet_UsesExplicitCredentials() throws Exception
Exception
public void metricCollectorNotExplicitlySet_UsesNullMetricsCollector() throws Exception
Exception
public void metricsCollectorExplicitlySet_UsesExplicitMetricsCollector() throws Exception
Exception
public void clientConfigurationNotExplicitlySet_UsesServiceDefaultClientConfiguration()
public void clientConfigurationExplicitlySet_UsesExplicitConfiguration()
public void explicitRegionIsSet_UsesRegionToConstructEndpoint()
public void noRegionProvidedExplicitlyOrImplicitly_ThrowsException()
AwsRegionProvider
implementation then the builder should fail to build clients. We mock the
provider to yield consistent results for the tests.public void regionImplicitlyProvided_UsesRegionToConstructEndpoint()
AwsRegionProvider
implementation. We mock the provider to yield consistent
results for the tests.public void customRegionUrlEncodesString()
public void endpointAndSigningRegionCanBeUsedInPlaceOfSetRegion()
public void cannotSetBothEndpointConfigurationAndRegionOnBuilder()
public void defaultClientConfigAndNoExplicitExecutor_UsesDefaultExecutorBasedOnMaxConns()
public void customMaxConnsAndNoExplicitExecutor_UsesDefaultExecutorBasedOnMaxConns()
public void customMaxConnsAndExplicitExecutor_UsesExplicitExecutor() throws Exception
Exception
public void noRequestHandlersExplicitlySet_UsesEmptyRequestHandlerList() throws Exception
Exception
public void requestHandlersExplicitlySet_UsesClonedListOfExplicitRequestHandlers() throws Exception
Exception
Copyright © 2020. All rights reserved.