Package com.amazonaws.test
Class AWSTestBase
java.lang.Object
com.amazonaws.test.AWSTestBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertFileEqualsFile
(File expected, File actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertFileEqualsStream
(File expected, InputStream actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertFileEqualsStream
(String errmsg, File expected, InputStream actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertNotEmpty
(String str) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertStreamEqualsStream
(InputStream expected, InputStream actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertStreamEqualsStream
(String errmsg, InputStream expectedInputStream, InputStream inputStream) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
assertStringEqualsStream
(String expected, InputStream actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected void
Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected boolean
doesFileEqualStream
(File expectedFile, InputStream inputStream) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected boolean
doesStreamEqualStream
(InputStream expected, InputStream actual) Deprecated.Use static imports for custom asserts inSdkAsserts
insteadprotected byte[]
drainInputStream
(InputStream inputStream) Deprecated.protected String
getResourceAsString
(String location) Reads a system resource fully into a Stringstatic void
Deprecated.Extend fromAWSIntegrationTestBase
to access credentials
-
Field Details
-
credentials
Deprecated.Extend fromAWSIntegrationTestBase
to 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 fromAWSIntegrationTestBase
to 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 inSdkAsserts
instead -
assertFileEqualsStream
Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
assertFileEqualsStream
Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
assertStreamEqualsStream
Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
assertStreamEqualsStream
@Deprecated protected void assertStreamEqualsStream(String errmsg, InputStream expectedInputStream, InputStream inputStream) Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
assertFileEqualsFile
Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
assertStringEqualsStream
Deprecated.Use static imports for custom asserts inSdkAsserts
instead -
doesStreamEqualStream
@Deprecated protected boolean doesStreamEqualStream(InputStream expected, InputStream actual) throws IOException Deprecated.Use static imports for custom asserts inSdkAsserts
instead- Throws:
IOException
-
drainInputStream
Deprecated. -
doesFileEqualStream
@Deprecated protected boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException Deprecated.Use static imports for custom asserts inSdkAsserts
instead- Throws:
IOException
-
assertValidException
Deprecated.Use static imports for custom asserts inSdkAsserts
instead
-
AWSIntegrationTestBase
to access credentials