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
  • Constructor Details

    • DefaultLocalMediaFileCacheServiceIntegrationTest

      public DefaultLocalMediaFileCacheServiceIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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

      public void shouldReturnFileInputStreamOfAlreadyCachedStream() throws IOException
      Throws:
      IOException
    • shouldNotThrowExceptionsWhenLocationWithSpecialCharacters

      public void shouldNotThrowExceptionsWhenLocationWithSpecialCharacters() throws IOException
      Throws:
      IOException
    • shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile

      public void shouldStoreStreamInLocalCacheIfItDoesntExistsAndReturnItAsRegularFile() throws IOException
      Throws:
      IOException
    • MissingItemImplshouldReturnRegularFileOfAlreadyCachedStream

      public void MissingItemImplshouldReturnRegularFileOfAlreadyCachedStream() throws IOException
      Throws:
      IOException
    • shouldRemoveCachedFileFromDiskWhenDirectDeleteWasCalled

      public void shouldRemoveCachedFileFromDiskWhenDirectDeleteWasCalled() throws IOException
      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