@UnitTest public class GridFSMediaStorageStrategyTest extends java.lang.Object
| Constructor and Description |
|---|
GridFSMediaStorageStrategyTest() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia()
public void shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia()
public void shouldStoreMediaUsingGridfsStrategy()
public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnDeleteMedia()
public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnDeleteMedia()
public void shouldDeleteMediaFromStorage()
public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnGettingMediaAsStream()
public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnGettingMediaAsStream()
public void shouldGetMediaAsStream()
public void shouldThrowUnsupportedOperationExceptionWhenGettingMediaAsFile()
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.