Class S3StorageServiceTest


  • public class S3StorageServiceTest
    extends java.lang.Object
    Unit tests for S3StorageService.
    Author:
    Carl Harris
    • Field Detail

      • context

        public final org.jmock.integration.junit4.JUnitRuleMockery context
      • expectedException

        public final org.junit.rules.ExpectedException expectedException
    • Constructor Detail

      • S3StorageServiceTest

        public S3StorageServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testIdToPath

        public void testIdToPath()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetContentStream

        public void testGetContentStream()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testGetContentStreamWhenNotFound

        public void testGetContentStreamWhenNotFound()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testStoreContent

        public void testStoreContent()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testStoreContentWhenS3Exception

        public void testStoreContentWhenS3Exception()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception