@IntegrationTest public class DefaultLocalMediaFileCacheServiceIntegrationTest extends ServicelayerBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultLocalMediaFileCacheServiceIntegrationTest() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic 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 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 © 2017 SAP SE. All Rights Reserved.