Package com.amazonaws.test
Class AWSTestBase
- java.lang.Object
-
- com.amazonaws.test.AWSTestBase
-
public abstract class AWSTestBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AWSCredentialscredentialsDeprecated.Extend fromAWSIntegrationTestBaseto access credentials
-
Constructor Summary
Constructors Constructor Description AWSTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidassertFileEqualsFile(File expected, File actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertFileEqualsStream(File expected, InputStream actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertFileEqualsStream(String errmsg, File expected, InputStream actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertNotEmpty(String str)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertStreamEqualsStream(InputStream expected, InputStream actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertStreamEqualsStream(String errmsg, InputStream expectedInputStream, InputStream inputStream)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertStringEqualsStream(String expected, InputStream actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected voidassertValidException(AmazonServiceException e)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected booleandoesFileEqualStream(File expectedFile, InputStream inputStream)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected booleandoesStreamEqualStream(InputStream expected, InputStream actual)Deprecated.Use static imports for custom asserts inSdkAssertsinsteadprotected byte[]drainInputStream(InputStream inputStream)Deprecated.protected StringgetResourceAsString(String location)Reads a system resource fully into a Stringstatic voidsetUpCredentials()Deprecated.Extend fromAWSIntegrationTestBaseto access credentials
-
-
-
Field Detail
-
credentials
@Deprecated public static AWSCredentials credentials
Deprecated.Extend fromAWSIntegrationTestBaseto access credentialsShared AWS credentials, loaded from a properties file. Direct access to this field is deprecated
-
-
Method Detail
-
setUpCredentials
@Deprecated public static void setUpCredentials()
Deprecated.Extend fromAWSIntegrationTestBaseto access credentials
-
getResourceAsString
protected String getResourceAsString(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
-
assertNotEmpty
@Deprecated protected void assertNotEmpty(String str)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertFileEqualsStream
@Deprecated protected void assertFileEqualsStream(File expected, InputStream actual)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertFileEqualsStream
@Deprecated protected void assertFileEqualsStream(String errmsg, File expected, InputStream actual)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertStreamEqualsStream
@Deprecated protected void assertStreamEqualsStream(InputStream expected, InputStream actual)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertStreamEqualsStream
@Deprecated protected void assertStreamEqualsStream(String errmsg, InputStream expectedInputStream, InputStream inputStream)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertFileEqualsFile
@Deprecated protected void assertFileEqualsFile(File expected, File actual)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
assertStringEqualsStream
@Deprecated protected void assertStringEqualsStream(String expected, InputStream actual)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
doesStreamEqualStream
@Deprecated protected boolean doesStreamEqualStream(InputStream expected, InputStream actual) throws IOException
Deprecated.Use static imports for custom asserts inSdkAssertsinstead- Throws:
IOException
-
drainInputStream
@Deprecated protected byte[] drainInputStream(InputStream inputStream)
Deprecated.
-
doesFileEqualStream
@Deprecated protected boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException
Deprecated.Use static imports for custom asserts inSdkAssertsinstead- Throws:
IOException
-
assertValidException
@Deprecated protected void assertValidException(AmazonServiceException e)
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
-