Package com.amazonaws.test
Class AWSTestBase
java.lang.Object
com.amazonaws.test.AWSTestBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 voidDeprecated.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 voidDeprecated.Extend fromAWSIntegrationTestBaseto access credentials
-
Field Details
-
credentials
Deprecated.Extend fromAWSIntegrationTestBaseto access credentialsShared AWS credentials, loaded from a properties file. Direct access to this field is deprecated
-
-
Constructor Details
-
AWSTestBase
public AWSTestBase()
-
-
Method Details
-
setUpCredentials
Deprecated.Extend fromAWSIntegrationTestBaseto access credentials -
getResourceAsString
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.Use static imports for custom asserts inSdkAssertsinstead -
assertFileEqualsStream
Deprecated.Use static imports for custom asserts inSdkAssertsinstead -
assertFileEqualsStream
Deprecated.Use static imports for custom asserts inSdkAssertsinstead -
assertStreamEqualsStream
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.Use static imports for custom asserts inSdkAssertsinstead -
assertStringEqualsStream
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. -
doesFileEqualStream
@Deprecated protected boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException Deprecated.Use static imports for custom asserts inSdkAssertsinstead- Throws:
IOException
-
assertValidException
Deprecated.Use static imports for custom asserts inSdkAssertsinstead
-
AWSIntegrationTestBaseto access credentials