Class MediaIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class MediaIntegrationTest extends HybrisJUnit4TransactionalTest
  • Constructor Details

    • MediaIntegrationTest

      public MediaIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • cleanUp

      public void cleanUp() throws Exception
      Throws:
      Exception
    • shouldAllowUploadingDataAsInputStream

      public void shouldAllowUploadingDataAsInputStream() throws Exception
      Throws:
      Exception
    • shouldAllowUploadingDataAsByteArray

      public void shouldAllowUploadingDataAsByteArray() throws Exception
      Throws:
      Exception
    • shouldAllowUploadingDataAsZeroByteArray

      public void shouldAllowUploadingDataAsZeroByteArray() throws Exception
      Throws:
      Exception
    • shouldAllowUploadDataAsInputStreamWithCustomNameAndMime

      public void shouldAllowUploadDataAsInputStreamWithCustomNameAndMime() throws Exception
      Throws:
      Exception
    • shouldAllowUploadDataAsInputStreamWithCustomNameMimeAndFolder

      public void shouldAllowUploadDataAsInputStreamWithCustomNameMimeAndFolder() throws Exception
      Throws:
      Exception
    • shouldAllowReSetInputStreamWithCustomNameMimeAndFolderToMediaWhichAlreadyHasData

      public void shouldAllowReSetInputStreamWithCustomNameMimeAndFolderToMediaWhichAlreadyHasData() throws Exception
      Throws:
      Exception
    • shouldAllowReUseDataFromAnotherMediaItem

      public void shouldAllowReUseDataFromAnotherMediaItem() throws Exception
      Throws:
      Exception
    • shouldAllowReUseDataFromAnotherEmptyMediaItem

      public void shouldAllowReUseDataFromAnotherEmptyMediaItem() throws Exception
      Throws:
      Exception
    • shouldRemoveCurrentDataWhenAnotherInputStreamIsSetToMediaAndUseNewDataFromGivenStream

      public void shouldRemoveCurrentDataWhenAnotherInputStreamIsSetToMediaAndUseNewDataFromGivenStream() throws JaloBusinessException
      Throws:
      JaloBusinessException
    • shouldRemoveDataFromStorage

      public void shouldRemoveDataFromStorage() throws Exception
      Throws:
      Exception
    • shouldThrowMediaNotFoundExceptionWhenLocationIsSetAndUnderlyingStorageCannotFindMediaData

      public void shouldThrowMediaNotFoundExceptionWhenLocationIsSetAndUnderlyingStorageCannotFindMediaData()
    • shouldGenerateDifferentDataPkOnEachUploadDataAttempt

      public void shouldGenerateDifferentDataPkOnEachUploadDataAttempt() throws Exception
      Throws:
      Exception
    • shouldMoveDataFromOneMediaToAnother

      public void shouldMoveDataFromOneMediaToAnother() throws JaloBusinessException
      Throws:
      JaloBusinessException
    • shouldMoveMediaToAnotherFolder

      public void shouldMoveMediaToAnotherFolder() throws JaloBusinessException
      Throws:
      JaloBusinessException
    • shouldCopyMediaToAnotherFolderOnMoveTryWhenAnotherMediaItemPointsToSameData

      public void shouldCopyMediaToAnotherFolderOnMoveTryWhenAnotherMediaItemPointsToSameData() throws JaloBusinessException
      Throws:
      JaloBusinessException
    • shouldRelocateDataFromOneFolderToAnother

      public void shouldRelocateDataFromOneFolderToAnother() throws JaloBusinessException
      Throws:
      JaloBusinessException
    • shouldRelocateDataFromOneFolderToAnotherAndUpdateMetadataForAllMediaItems

      public void shouldRelocateDataFromOneFolderToAnotherAndUpdateMetadataForAllMediaItems() throws JaloBusinessException
      Throws:
      JaloBusinessException