Class LocalFileMediaStorageStrategyTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class LocalFileMediaStorageStrategyTest extends ServicelayerBaseTest
  • Constructor Details

    • LocalFileMediaStorageStrategyTest

      public LocalFileMediaStorageStrategyTest()
  • Method Details

    • setUp

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

      public void cleanUp() throws Exception
      Throws:
      Exception
    • shouldStoreFileInAllReplicationDirs

      public void shouldStoreFileInAllReplicationDirs() throws IOException
      Throws:
      IOException
    • shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize

      public void shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize() throws Exception
      Throws:
      Exception
    • shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist

      public void shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist() throws Exception
      Throws:
      Exception
    • shouldRemoveMediaIfMediaExists

      public void shouldRemoveMediaIfMediaExists() throws Exception
      Throws:
      Exception
    • shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread

      public void shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread() throws Exception
      Throws:
      Exception
    • shouldGetMediaAsStream

      public void shouldGetMediaAsStream() throws Exception
      Throws:
      Exception
    • shouldNotGetMediaFromFolderWithPercentAsStream

      public void shouldNotGetMediaFromFolderWithPercentAsStream() throws Exception
      Throws:
      Exception
    • shouldGetMediaFromFolderWithSlashAsStream

      public void shouldGetMediaFromFolderWithSlashAsStream() throws Exception
      Throws:
      Exception
    • shouldNotGetMediaFromTamperedLocationAsStream

      public void shouldNotGetMediaFromTamperedLocationAsStream() throws Exception
      Throws:
      Exception
    • shouldNotGetMediaFromTamperedLocationAsRootFolderAsStream

      public void shouldNotGetMediaFromTamperedLocationAsRootFolderAsStream() throws Exception
      Throws:
      Exception
    • shouldReturnSizeOfAnObjectInStorage

      public void shouldReturnSizeOfAnObjectInStorage() throws Exception
      Throws:
      Exception
    • shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject

      public void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject() throws Exception
      Throws:
      Exception
    • shouldGetMediaAsFile

      public void shouldGetMediaAsFile() throws Exception
      Throws:
      Exception