@IntegrationTest public class DefaultLocalMediaFileCacheServiceIntegrationTest extends ServicelayerBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultLocalMediaFileCacheServiceIntegrationTest() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic DefaultLocalMediaFileCacheServiceIntegrationTest()
public void cleanUp()
public void shouldCacheFileOnlyOnceWhenRequestingMediaWithTheSameLocationMultipleTimes()
throws IOException
IOExceptionpublic void shouldNotRemoveFilesAfterInvalidationUntilAllClientsCloseTheStreams()
throws IOException
IOExceptionpublic void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsFileInputStream()
throws IOException
IOExceptionpublic void shouldReturnFileInputStreamOfAlreadyCachedStream()
throws IOException
IOExceptionpublic void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile()
public void shouldReturnRegularFileOfAlreadyCachedStream()
public void shouldRemoveCachedFileFromDiskWhenDirectDeleteWasCalled()
throws IOException
IOExceptionpublic void shouldWriteEvictionMarkerFileForCachedFileTakenAsFileByTheClientInsteadRemovingFileOnEviction()
throws Exception
Exceptionpublic void shouldEvictExistingCacheUnitWhenItsUnderlyingFileWasDeletedAccidentally()
throws Exception
ExceptionCopyright © 2017 SAP SE. All Rights Reserved.