Class AWSIntegrationTestBase


  • public abstract class AWSIntegrationTestBase
    extends Object
    • Constructor Detail

      • AWSIntegrationTestBase

        public AWSIntegrationTestBase()
    • 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