Package com.amazonaws.test
Class AWSIntegrationTestBase
- java.lang.Object
-
- com.amazonaws.test.AWSIntegrationTestBase
-
public abstract class AWSIntegrationTestBase extends Object
-
-
Constructor Summary
Constructors Constructor Description AWSIntegrationTestBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static AWSCredentials
getCredentials()
protected String
getResourceAsString(String location)
Reads a system resource fully into a Stringstatic void
setUpCredentials()
Before of super class is guaranteed to be called before that of a subclass so the following is safe. http://junit-team.github.io/junit/javadoc/latest/org/junit/Before.html
-
-
-
Method Detail
-
setUpCredentials
public static void setUpCredentials()
Before of super class is guaranteed to be called before that of a subclass so the following is safe. http://junit-team.github.io/junit/javadoc/latest/org/junit/Before.html
-
getCredentials
protected static AWSCredentials getCredentials()
- Returns:
- AWSCredentials to use during tests. Setup by base fixture
-
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
-
-