@IntegrationTest public class DefaultLocalMediaFileCacheServiceIntegrationTest extends ServicelayerBaseTest
jaloSession| Constructor and Description |
|---|
DefaultLocalMediaFileCacheServiceIntegrationTest() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic DefaultLocalMediaFileCacheServiceIntegrationTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUp()
public void shouldCacheFileOnlyOnceWhenRequestingMediaWithTheSameLocationMultipleTimes()
throws java.io.IOException
java.io.IOExceptionpublic void shouldNotRemoveFilesAfterInvalidationUntilAllClientsCloseTheStreams()
throws java.io.IOException
java.io.IOExceptionpublic void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsFileInputStream()
throws java.io.IOException
java.io.IOExceptionpublic void shouldReturnFileInputStreamOfAlreadyCachedStream()
throws java.io.IOException
java.io.IOExceptionpublic void shouldNotThrowExceptionsWhenLocationWithSpecialCharacters()
throws java.io.IOException
java.io.IOExceptionpublic void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile()
public void shouldReturnRegularFileOfAlreadyCachedStream()
public void shouldRemoveCachedFileFromDiskWhenDirectDeleteWasCalled()
throws java.io.IOException
java.io.IOExceptionpublic void shouldWriteEvictionMarkerFileForCachedFileTakenAsFileByTheClientInsteadRemovingFileOnEviction()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldEvictExistingCacheUnitWhenItsUnderlyingFileWasDeletedAccidentally()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotStoreFileInTheCacheIfItIsBiggerThanEntireDeclaredCacheSize()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.