Class LocalFileMediaStorageStrategyTest

    • Constructor Detail

      • LocalFileMediaStorageStrategyTest

        public LocalFileMediaStorageStrategyTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cleanUp

        public void cleanUp()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldStoreFileInAllReplicationDirs

        public void shouldStoreFileInAllReplicationDirs()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize

        public void shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize()
                                                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist

        public void shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist()
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRemoveMediaIfMediaExists

        public void shouldRemoveMediaIfMediaExists()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread

        public void shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread()
                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldGetMediaAsStream

        public void shouldGetMediaAsStream()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturnSizeOfAnObjectInStorage

        public void shouldReturnSizeOfAnObjectInStorage()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject

        public void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldGetMediaAsFile

        public void shouldGetMediaAsFile()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception