Class AwsIntegrationTestBase
- java.lang.Object
-
- software.amazon.awssdk.testutils.service.AwsIntegrationTestBase
-
public abstract class AwsIntegrationTestBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AwsCredentialsProviderChain
CREDENTIALS_PROVIDER_CHAIN
-
Constructor Summary
Constructors Constructor Description AwsIntegrationTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static AwsCredentials
getCredentials()
Deprecated.protected static IdentityProvider<AwsCredentialsIdentity>
getCredentialsProvider()
protected String
getResourceAsString(Class<?> clazz, String location)
Reads a system resource fully into a String
-
-
-
Field Detail
-
CREDENTIALS_PROVIDER_CHAIN
public static final AwsCredentialsProviderChain CREDENTIALS_PROVIDER_CHAIN
-
-
Method Detail
-
getCredentials
@Deprecated protected static AwsCredentials getCredentials()
Deprecated.- Returns:
- AWSCredentials to use during tests. Setup by base fixture
-
getCredentialsProvider
protected static IdentityProvider<AwsCredentialsIdentity> getCredentialsProvider()
- Returns:
IdentityProvider
to use during tests. Setup by base fixture
-
getResourceAsString
protected String getResourceAsString(Class<?> clazz, String location)
Reads a system resource fully into a String- Parameters:
location
- Relative or absolute location of system resource.- Returns:
- String contents of resource file
- Throws:
RuntimeException
- if any error occurs
-
-