Class LocalFileMediaStorageStrategyTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.media.storage.impl.LocalFileMediaStorageStrategyTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
LocalFileMediaStorageStrategyTest
public LocalFileMediaStorageStrategyTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
cleanUp
- Throws:
Exception
-
shouldStoreFileInAllReplicationDirs
- Throws:
IOException
-
shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize
public void shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize() throws Exception- Throws:
Exception
-
shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist
- Throws:
Exception
-
shouldRemoveMediaIfMediaExists
- Throws:
Exception
-
shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread
public void shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread() throws Exception- Throws:
Exception
-
shouldGetMediaAsStream
- Throws:
Exception
-
shouldNotGetMediaFromFolderWithPercentAsStream
- Throws:
Exception
-
shouldGetMediaFromFolderWithSlashAsStream
- Throws:
Exception
-
shouldNotGetMediaFromTamperedLocationAsStream
- Throws:
Exception
-
shouldNotGetMediaFromTamperedLocationAsRootFolderAsStream
- Throws:
Exception
-
shouldReturnSizeOfAnObjectInStorage
- Throws:
Exception
-
shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject
public void shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject() throws Exception- Throws:
Exception
-
shouldGetMediaAsFile
- Throws:
Exception
-