Package de.hybris.platform.jalo.media
Class MediaIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.testframework.HybrisJUnit4TransactionalTest
de.hybris.platform.jalo.media.MediaIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
MediaIntegrationTest
public MediaIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
cleanUp
- Throws:
Exception
-
shouldAllowUploadingDataAsInputStream
- Throws:
Exception
-
shouldAllowUploadingDataAsByteArray
- Throws:
Exception
-
shouldAllowUploadingDataAsZeroByteArray
- Throws:
Exception
-
shouldAllowUploadDataAsInputStreamWithCustomNameAndMime
- Throws:
Exception
-
shouldAllowUploadDataAsInputStreamWithCustomNameMimeAndFolder
- Throws:
Exception
-
shouldAllowReSetInputStreamWithCustomNameMimeAndFolderToMediaWhichAlreadyHasData
public void shouldAllowReSetInputStreamWithCustomNameMimeAndFolderToMediaWhichAlreadyHasData() throws Exception- Throws:
Exception
-
shouldAllowReUseDataFromAnotherMediaItem
- Throws:
Exception
-
shouldAllowReUseDataFromAnotherEmptyMediaItem
- Throws:
Exception
-
shouldRemoveCurrentDataWhenAnotherInputStreamIsSetToMediaAndUseNewDataFromGivenStream
public void shouldRemoveCurrentDataWhenAnotherInputStreamIsSetToMediaAndUseNewDataFromGivenStream() throws JaloBusinessException- Throws:
JaloBusinessException
-
shouldRemoveDataFromStorage
- Throws:
Exception
-
shouldThrowMediaNotFoundExceptionWhenLocationIsSetAndUnderlyingStorageCannotFindMediaData
public void shouldThrowMediaNotFoundExceptionWhenLocationIsSetAndUnderlyingStorageCannotFindMediaData() -
shouldGenerateDifferentDataPkOnEachUploadDataAttempt
- Throws:
Exception
-
shouldMoveDataFromOneMediaToAnother
- Throws:
JaloBusinessException
-
shouldMoveMediaToAnotherFolder
- Throws:
JaloBusinessException
-
shouldCopyMediaToAnotherFolderOnMoveTryWhenAnotherMediaItemPointsToSameData
public void shouldCopyMediaToAnotherFolderOnMoveTryWhenAnotherMediaItemPointsToSameData() throws JaloBusinessException- Throws:
JaloBusinessException
-
shouldRelocateDataFromOneFolderToAnother
- Throws:
JaloBusinessException
-
shouldRelocateDataFromOneFolderToAnotherAndUpdateMetadataForAllMediaItems
public void shouldRelocateDataFromOneFolderToAnotherAndUpdateMetadataForAllMediaItems() throws JaloBusinessException- Throws:
JaloBusinessException
-