Class DefaultLocalMediaFileCacheServiceIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.media.storage.impl.DefaultLocalMediaFileCacheServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class DefaultLocalMediaFileCacheServiceIntegrationTest
extends ServicelayerBaseTest
-
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
-
DefaultLocalMediaFileCacheServiceIntegrationTest
public DefaultLocalMediaFileCacheServiceIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
cleanUp
public void cleanUp() -
shouldCacheFileOnlyOnceWhenRequestingMediaWithTheSameLocationMultipleTimes
public void shouldCacheFileOnlyOnceWhenRequestingMediaWithTheSameLocationMultipleTimes() throws IOException- Throws:
IOException
-
shouldNotRemoveFilesAfterInvalidationUntilAllClientsCloseTheStreams
public void shouldNotRemoveFilesAfterInvalidationUntilAllClientsCloseTheStreams() throws IOException- Throws:
IOException
-
shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsFileInputStream
public void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsFileInputStream() throws IOException- Throws:
IOException
-
shouldReturnFileInputStreamOfAlreadyCachedStream
- Throws:
IOException
-
shouldNotThrowExceptionsWhenLocationWithSpecialCharacters
- Throws:
IOException
-
shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile
public void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile() throws IOException- Throws:
IOException
-
MissingItemImplshouldReturnRegularFileOfAlreadyCachedStream
- Throws:
IOException
-
shouldRemoveCachedFileFromDiskWhenDirectDeleteWasCalled
- Throws:
IOException
-
shouldWriteEvictionMarkerFileForCachedFileTakenAsFileByTheClientInsteadRemovingFileOnEviction
public void shouldWriteEvictionMarkerFileForCachedFileTakenAsFileByTheClientInsteadRemovingFileOnEviction() throws IOException- Throws:
IOException
-
shouldEvictExistingCacheUnitWhenItsUnderlyingFileWasDeletedAccidentally
public void shouldEvictExistingCacheUnitWhenItsUnderlyingFileWasDeletedAccidentally() throws IOException- Throws:
IOException
-
shouldNotStoreFileInTheCacheIfItIsBiggerThanEntireDeclaredCacheSize
public void shouldNotStoreFileInTheCacheIfItIsBiggerThanEntireDeclaredCacheSize() throws IOException- Throws:
IOException
-