@IntegrationTest public class LocalFileMediaStorageStrategyTest extends ServicelayerBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
LocalFileMediaStorageStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
setUp() |
void |
shouldGetMediaAsFile() |
void |
shouldGetMediaAsStream() |
void |
shouldRemoveMediaIfMediaExists() |
void |
shouldReturnSizeOfAnObjectInStorage() |
void |
shouldStoreFileInAllReplicationDirs() |
void |
shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize() |
void |
shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject() |
void |
shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void shouldStoreFileInAllReplicationDirs()
throws IOException
IOExceptionpublic void shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize()
throws Exception
Exceptionpublic void shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist()
throws Exception
Exceptionpublic void shouldRemoveMediaIfMediaExists()
throws Exception
Exceptionpublic void shouldReturnSizeOfAnObjectInStorage()
throws Exception
Exceptionpublic void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
throws Exception
ExceptionCopyright © 2017 SAP SE. All Rights Reserved.