Class S3MediaStorageStrategyTest


  • @UnitTest
    public class S3MediaStorageStrategyTest
    extends java.lang.Object
    • Constructor Detail

      • S3MediaStorageStrategyTest

        public S3MediaStorageStrategyTest()
    • Method Detail

      • setUp

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

        public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia()
      • shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia

        public void shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia()
      • shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia

        public void shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia()
      • shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia

        public void shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia()
      • shouldStoreMediaUsingS3Service

        public void shouldStoreMediaUsingS3Service()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldThrowMediaStoreExceptionWhenStoringMediaAndServiceExceptionWasThrown

        public void shouldThrowMediaStoreExceptionWhenStoringMediaAndServiceExceptionWasThrown()
      • shouldDeleteMediaFromStorage

        public void shouldDeleteMediaFromStorage()
      • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenDeletingMedia

        public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenDeletingMedia()
      • shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenDeletingMedia

        public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenDeletingMedia()
      • shouldThrowUnsupportedOperationExceptionWhenGettingStreamAsFile

        public void shouldThrowUnsupportedOperationExceptionWhenGettingStreamAsFile()
      • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenGettingMediaAsStream

        public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenGettingMediaAsStream()
      • shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenGettingMediaAsStream

        public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenGettingMediaAsStream()
      • shouldGetMediaAsStream

        public void shouldGetMediaAsStream()
      • shouldReturnSizeOfAnObjectInStorage

        public void shouldReturnSizeOfAnObjectInStorage()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject

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