Class GridFSMediaStorageStrategyTest

java.lang.Object
de.hybris.platform.gridfs.media.storage.GridFSMediaStorageStrategyTest

@UnitTest public class GridFSMediaStorageStrategyTest extends Object
  • Constructor Details

    • GridFSMediaStorageStrategyTest

      public GridFSMediaStorageStrategyTest()
  • Method Details

    • setUp

      public void setUp()
    • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenMediaIdIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenMetaDataIsNullOnStoringMedia()
    • shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia

      public void shouldThrowIllegalArgumentExceptionWhenDataStreamIsNullOnStoringMedia()
    • shouldStoreMediaUsingGridFSStrategy

      public void shouldStoreMediaUsingGridFSStrategy()
    • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnDeleteMedia

      public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnDeleteMedia()
    • shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnDeleteMedia

      public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnDeleteMedia()
    • shouldDeleteMediaFromStorage

      public void shouldDeleteMediaFromStorage()
    • shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnGettingMediaAsStream

      public void shouldThrowIllegalArgumentExceptionWhenFolderConfigIsNullOnGettingMediaAsStream()
    • shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnGettingMediaAsStream

      public void shouldThrowIllegalArgumentExceptionWhenLocationIsNullOnGettingMediaAsStream()
    • shouldGetMediaAsStream

      public void shouldGetMediaAsStream() throws IOException
      Throws:
      IOException
    • shouldThrowUnsupportedOperationExceptionWhenGettingMediaAsFile

      public void shouldThrowUnsupportedOperationExceptionWhenGettingMediaAsFile()
    • shouldReturnSizeOfAnObjectInStorage

      public void shouldReturnSizeOfAnObjectInStorage()
    • shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject

      public void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
    • shouldGetExistingGridFsTemplateFromPoolInsteadCreatingNewOne

      public void shouldGetExistingGridFsTemplateFromPoolInsteadCreatingNewOne()