Class S3MediaStorageStrategyTest

java.lang.Object
de.hybris.platform.amazon.media.storage.S3MediaStorageStrategyTest

@UnitTest public class S3MediaStorageStrategyTest extends Object
  • Constructor Details

    • S3MediaStorageStrategyTest

      public S3MediaStorageStrategyTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia()
    • shouldStoreMediaUsingS3Service

      public void shouldStoreMediaUsingS3Service() throws Exception
      Throws:
      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 Exception
      Throws:
      Exception
    • shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject

      public void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject() throws Exception
      Throws:
      Exception