@IntegrationTest public class LocalFileMediaStorageStrategyTest extends ServicelayerBaseTest
jaloSession| Constructor and Description |
|---|
LocalFileMediaStorageStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldGetMediaAsFile() |
void |
shouldGetMediaAsStream() |
void |
shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread() |
void |
shouldRemoveMediaIfMediaExists() |
void |
shouldReturnSizeOfAnObjectInStorage() |
void |
shouldStoreFileInAllReplicationDirs() |
void |
shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize() |
void |
shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject() |
void |
shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldStoreFileInAllReplicationDirs()
throws java.io.IOException
java.io.IOExceptionpublic void shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldRemoveMediaIfMediaExists()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldGetMediaAsStream()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnSizeOfAnObjectInStorage()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldGetMediaAsFile()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.