public abstract class AWSTestBase extends Object
Modifier and Type | Field and Description |
---|---|
static AWSCredentials |
credentials
Deprecated.
Extend from
AWSIntegrationTestBase to access credentials |
RetryRule |
retry |
Constructor and Description |
---|
AWSTestBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertFileEqualsFile(File expected,
File actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertFileEqualsStream(File expected,
InputStream actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertFileEqualsStream(String errmsg,
File expected,
InputStream actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertNotEmpty(String str)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertStreamEqualsStream(InputStream expected,
InputStream actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertStreamEqualsStream(String errmsg,
InputStream expectedInputStream,
InputStream inputStream)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertStringEqualsStream(String expected,
InputStream actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected void |
assertValidException(AmazonServiceException e)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected boolean |
doesFileEqualStream(File expectedFile,
InputStream inputStream)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected boolean |
doesStreamEqualStream(InputStream expected,
InputStream actual)
Deprecated.
Use static imports for custom asserts in
SdkAsserts instead |
protected byte[] |
drainInputStream(InputStream inputStream)
Deprecated.
|
protected String |
getResourceAsString(String location)
Reads a system resource fully into a String
|
protected void |
setRetryRule(RetryRule rule) |
static void |
setUpCredentials()
Deprecated.
Extend from
AWSIntegrationTestBase to access credentials |
@Deprecated public static AWSCredentials credentials
AWSIntegrationTestBase
to access credentialspublic RetryRule retry
@Deprecated public static void setUpCredentials()
AWSIntegrationTestBase
to access credentialsprotected void setRetryRule(RetryRule rule)
protected String getResourceAsString(String location)
location
- Relative or absolute location of system resource.RuntimeException
- if any error occurs@Deprecated protected void assertNotEmpty(String str)
SdkAsserts
instead@Deprecated protected void assertFileEqualsStream(File expected, InputStream actual)
SdkAsserts
instead@Deprecated protected void assertFileEqualsStream(String errmsg, File expected, InputStream actual)
SdkAsserts
instead@Deprecated protected void assertStreamEqualsStream(InputStream expected, InputStream actual)
SdkAsserts
instead@Deprecated protected void assertStreamEqualsStream(String errmsg, InputStream expectedInputStream, InputStream inputStream)
SdkAsserts
instead@Deprecated protected void assertFileEqualsFile(File expected, File actual)
SdkAsserts
instead@Deprecated protected void assertStringEqualsStream(String expected, InputStream actual)
SdkAsserts
instead@Deprecated protected boolean doesStreamEqualStream(InputStream expected, InputStream actual) throws IOException
SdkAsserts
insteadIOException
@Deprecated protected byte[] drainInputStream(InputStream inputStream)
InputStreamUtils.drainInputStream(InputStream)
@Deprecated protected boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException
SdkAsserts
insteadIOException
@Deprecated protected void assertValidException(AmazonServiceException e)
SdkAsserts
insteadCopyright © 2024. All rights reserved.