Class AwsTestBase
- java.lang.Object
-
- software.amazon.awssdk.testutils.service.AwsTestBase
-
public abstract class AwsTestBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AwsCredentialsProviderChainCREDENTIALS_PROVIDER_CHAIN
-
Constructor Summary
Constructors Constructor Description AwsTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidassertValidException(SdkServiceException e)Deprecated.UseisValidSdkServiceException()in a hamcrest matcherprotected static StringgetResourceAsString(Class<?> clazz, String location)Reads a system resource fully into a Stringstatic org.hamcrest.Matcher<SdkServiceException>isValidSdkServiceException()static voidsetUpCredentials()Deprecated.Extend fromAwsIntegrationTestBaseto access credentials
-
-
-
Field Detail
-
CREDENTIALS_PROVIDER_CHAIN
public static final AwsCredentialsProviderChain CREDENTIALS_PROVIDER_CHAIN
-
-
Method Detail
-
setUpCredentials
@Deprecated public static void setUpCredentials()
Deprecated.Extend fromAwsIntegrationTestBaseto access credentials
-
getResourceAsString
protected static 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
-
assertValidException
@Deprecated protected void assertValidException(SdkServiceException e)
Deprecated.UseisValidSdkServiceException()in a hamcrest matcher
-
isValidSdkServiceException
public static org.hamcrest.Matcher<SdkServiceException> isValidSdkServiceException()
-
-