@UnitTest public class S3MediaStorageStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
S3MediaStorageStrategyTest() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia()
public void shouldStoreMediaUsingS3Service()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowMediaStoreExceptionWhenStoringMediaAndServiceExceptionWasThrown()
public void shouldDeleteMediaFromStorage()
public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenDeletingMedia()
public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenDeletingMedia()
public void shouldThrowUnsupportedOperationExceptionWhenGettingStreamAsFile()
public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullWhenGettingMediaAsStream()
public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullWhenGettingMediaAsStream()
public void shouldGetMediaAsStream()
public void shouldReturnSizeOfAnObjectInStorage()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.