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
@IntegrationTest public class LocalFileMediaStorageStrategyTest extends ServicelayerBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description LocalFileMediaStorageStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
void
setUp()
void
shouldGetMediaAsFile()
void
shouldGetMediaAsStream()
void
shouldNotThrowMediaRemovalExceptionWhenMediaAlreadyRemovedByOtherThread()
void
shouldRemoveMediaIfMediaExists()
void
shouldReturnSizeOfAnObjectInStorage()
void
shouldStoreFileInAllReplicationDirs()
void
shouldStoreFileInLocalStorageAndReturnStoredMediaDataObjectWithStorageLocationAndSize()
void
shouldThrowMediaNotFoundExceptionWhenAskingForSizeForNonExistentObject()
void
shouldThrowMediaStoreExceptionWhenFileWithTheSameNameAlreadyExist()
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
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
-
-