Class DefaultMediaServiceIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.media.impl.DefaultMediaServiceIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultMediaServiceIntegrationTest extends ServicelayerBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultMediaServiceIntegrationTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldConnectDataFromOneMediaToAnotherIfBothMediasAreInTheSameFolder
public void shouldConnectDataFromOneMediaToAnotherIfBothMediasAreInTheSameFolder() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldCopyDataFromOneMediaToAnotherIfBothMediasAreInDifferentFolders
public void shouldCopyDataFromOneMediaToAnotherIfBothMediasAreInDifferentFolders() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldCopyUrlFromOneMediaToAnotherIfSourceMediaIsUrlBasedAndTargetMediaHasData
public void shouldCopyUrlFromOneMediaToAnotherIfSourceMediaIsUrlBasedAndTargetMediaHasData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowIllegalStateExceptionOnCopyingDataWhenSourceMediaHasNotDataAndEmptyUrl
public void shouldThrowIllegalStateExceptionOnCopyingDataWhenSourceMediaHasNotDataAndEmptyUrl() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldCopyUrlFromOneMediaToAnotherIfSourceMediaIsUrlBasedAndTargetMediaHasNoData
public void shouldCopyUrlFromOneMediaToAnotherIfSourceMediaIsUrlBasedAndTargetMediaHasNoData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldMoveDataFromOneMediaToAnother
public void shouldMoveDataFromOneMediaToAnother() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldReturnMediaDataAsListOfFiles
public void shouldReturnMediaDataAsListOfFiles() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsFiles
public void shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsFiles()
-
shouldSetStreamDataToMedia
public void shouldSetStreamDataToMedia()
-
shouldSetUrlForSavedModelWhichDoesNotContainAnyData
public void shouldSetUrlForSavedModelWhichDoesNotContainAnyData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSetUrlForNonSavedModel
public void shouldSetUrlForNonSavedModel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSetUrlForMediaWhichContainsDataAndShouldRemoveItsDataIfItIsNotReferenced
public void shouldSetUrlForMediaWhichContainsDataAndShouldRemoveItsDataIfItIsNotReferenced() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSetUrlForMediaWhichContainsDataAndShouldNotRemoveItsDataIfItIsReferenced
public void shouldSetUrlForMediaWhichContainsDataAndShouldNotRemoveItsDataIfItIsReferenced() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldReturnMediaDataAsByteArray
public void shouldReturnMediaDataAsByteArray()
-
shouldReturnMediaDataAsStreamWhenMediaHasRealData
public void shouldReturnMediaDataAsStreamWhenMediaHasRealData()
-
shouldReturnMediaDataAsStreamWhenMediaHasOnlyUrl
public void shouldReturnMediaDataAsStreamWhenMediaHasOnlyUrl() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldReturnMediaDataAsStreamWhenMediaHasOnlyUrlWithFROMJARPrefix
public void shouldReturnMediaDataAsStreamWhenMediaHasOnlyUrlWithFROMJARPrefix() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsByteArray
public void shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsByteArray()
-
shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsStream
public void shouldThrowNoDataAvailableExceptionWhenAnyExceptionOccursDuringObtainingDataAsStream()
-
shouldMoveMediaToAnotherFolder
public void shouldMoveMediaToAnotherFolder() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldAddMediaVersionToExistingMedia
public void shouldAddMediaVersionToExistingMedia()
-
shouldPreventAddingMediaVersionWithNotUniqueVersionId
public void shouldPreventAddingMediaVersionWithNotUniqueVersionId()
-
shouldReturnDataStreamForExistingMediaVersion
public void shouldReturnDataStreamForExistingMediaVersion()
-
shouldReturnUrlForExistingMediaVersion
public void shouldReturnUrlForExistingMediaVersion()
-
shouldRemoveVersionFromExistingMedia
public void shouldRemoveVersionFromExistingMedia()
-
shouldRemoveDataFromMediaByJustClearingMetadataIfItShareItWithAnotherObject
public void shouldRemoveDataFromMediaByJustClearingMetadataIfItShareItWithAnotherObject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldRemoveDataFromMediaCompletelyIfItDoesNotShareItWithAnotherObject
public void shouldRemoveDataFromMediaCompletelyIfItDoesNotShareItWithAnotherObject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldRemoveDataFromStorageOnMediaModelRemovalIfItDoesNotShareItWithAnotherObject
public void shouldRemoveDataFromStorageOnMediaModelRemovalIfItDoesNotShareItWithAnotherObject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldRemoveDataFromStorageOnMediaModelRemovalIfItDoesNotShareItWithAnotherObjectEvenWithMessedLocation
public void shouldRemoveDataFromStorageOnMediaModelRemovalIfItDoesNotShareItWithAnotherObjectEvenWithMessedLocation() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotRemoveDataFromStorageOnMediaModelRemovalIfItShareItWithAnotherObject
public void shouldNotRemoveDataFromStorageOnMediaModelRemovalIfItShareItWithAnotherObject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
allowDerivedMediaWithSameVersionForDifferentMedias
public void allowDerivedMediaWithSameVersionForDifferentMedias()
-
shouldProvideDownloadUrlInModel
public void shouldProvideDownloadUrlInModel() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSetFolderToRootIfNotSaveDuringSave
public void shouldSetFolderToRootIfNotSaveDuringSave() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldFindForeignDataOwner
public void shouldFindForeignDataOwner() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSetSpecifiedMimeTypeIfStreamAvailableReturnsZero
public void shouldSetSpecifiedMimeTypeIfStreamAvailableReturnsZero() throws java.io.IOException
- Throws:
java.io.IOException
-
shouldNotRemoveNotRemovableMedia
public void shouldNotRemoveNotRemovableMedia()
-
shouldReadDeniedAndPermittedPrincipals
public void shouldReadDeniedAndPermittedPrincipals()
-
shouldSetDeniedAndPermittedPrincipals
public void shouldSetDeniedAndPermittedPrincipals()
-
shouldSetDeniedAndPermittedPrincipalsNoMatterOrder
public void shouldSetDeniedAndPermittedPrincipalsNoMatterOrder()
-
shouldSaveMediaViaSLD
public void shouldSaveMediaViaSLD()
-
-