Class S3MediaStorageStrategyTest
- java.lang.Object
-
- de.hybris.platform.amazon.media.storage.S3MediaStorageStrategyTest
-
@UnitTest public class S3MediaStorageStrategyTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description S3MediaStorageStrategyTest()
-
Method Summary
-
-
-
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
-
-