Class DefaultImportServiceIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.servicelayer.impex.impl.DefaultImportServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindAddressByFirstNameAndLastName(String firstName, String lastName) voidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidshouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DefaultImportServiceIntegrationTest
public DefaultImportServiceIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
setLegacyMode
public void setLegacyMode() -
testFileBasedImportResource
- Throws:
IOException
-
testStreamBasedImportResource
- Throws:
IOException
-
testMediaBasedImportResource
- Throws:
IOException
-
testImportByResource
public void testImportByResource() -
testImportByConfig
public void testImportByConfig() -
testImportByConfigWithError
public void testImportByConfigWithError() -
testImportByConfigWithErrorFailSafe
public void testImportByConfigWithErrorFailSafe() -
testCreateExportImportJobs
public void testCreateExportImportJobs() -
shouldImportScriptContainingInsertUniquelessItemUsingDistributedImpex
public void shouldImportScriptContainingInsertUniquelessItemUsingDistributedImpex() throws Exception- Throws:
Exception
-
shouldRemoveStaleItemsAfterDistributedImpex
public void shouldRemoveStaleItemsAfterDistributedImpex() -
shouldRemoveStaleItemsAfterDistributedImpexWhenRemoveOnSuccessAndRemoveOnSuccessImportBatchContentAreEnabled
public void shouldRemoveStaleItemsAfterDistributedImpexWhenRemoveOnSuccessAndRemoveOnSuccessImportBatchContentAreEnabled() -
shouldNotRemoveStaleItemsIfPropertyRemoveOnSuccessIsDisabledAfterDistributedImpex
public void shouldNotRemoveStaleItemsIfPropertyRemoveOnSuccessIsDisabledAfterDistributedImpex() -
shouldRemoveOnlyImportBatchContentIfPropertyRemoveOnSuccessForImportBatchContentIsEnabled
public void shouldRemoveOnlyImportBatchContentIfPropertyRemoveOnSuccessForImportBatchContentIsEnabled() -
findAddressByFirstNameAndLastName
-
shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig
public void shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig() -
shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig
public void shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig() -
shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull
public void shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull() -
shouldSeeFinishedStateForAsyncImport
- Throws:
InterruptedException
-
shouldDumpLinesWithInvalidOrNoHeader
public void shouldDumpLinesWithInvalidOrNoHeader() -
shouldDumpLinesToLogFileWithInvalidOrNoHeaderWhenMultiThreadedImport
public void shouldDumpLinesToLogFileWithInvalidOrNoHeaderWhenMultiThreadedImport() throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne
public void shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne() -
shouldRunImportUsingDistributedImpEx
- Throws:
Exception
-
shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx
- Throws:
Exception
-
importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse
- Throws:
Exception
-
importConfigShouldOverrideFlagForDistributedImpexRemoveOnSuccessModeSetToNone
public void importConfigShouldOverrideFlagForDistributedImpexRemoveOnSuccessModeSetToNone() -
flagRemoveOnSuccessModeShouldSetShouldBeRespectedIfImportConfigIsNotSet
public void flagRemoveOnSuccessModeShouldSetShouldBeRespectedIfImportConfigIsNotSet() -
importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue
- Throws:
Exception
-
defaultSettingForDistributedImpexShouldBeDisabled
- Throws:
Exception
-
shouldEnableGloballyDistributedImpex
- Throws:
Exception
-
shouldCollectImportErrors_ConflictingItemInAnInputScript
- Throws:
Exception
-
shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx
public void shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_ConflictingItemInADB
- Throws:
Exception
-
shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx
- Throws:
Exception
-
shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader
- Throws:
Exception
-
shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex
public void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_InvalidINSERTHeader
- Throws:
Exception
-
shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx
- Throws:
Exception
-
shouldCollectImportErrors_InvalidTypeInHeader
- Throws:
Exception
-
shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex
- Throws:
Exception
-
shouldCollectImportErrors_InvalidINSERT_UPDATEHeader
- Throws:
Exception
-
shouldCollectImportErrors_InvalidDataInLineINSERTHeader
- Throws:
Exception
-
shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx
public void shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader
- Throws:
Exception
-
shouldCollectImportErrors_InvalidDataInLineUPDATEHeader_DistributedImpex
public void shouldCollectImportErrors_InvalidDataInLineUPDATEHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader
public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex
public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValue_DistributedImpex
- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader
- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValueUPDATEeader
- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex
public void shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValueINSERTHeader
- Throws:
Exception
-
shouldCollectImportErrors_UntranslatableValueINSERTHeader_DistributedImpex
public void shouldCollectImportErrors_UntranslatableValueINSERTHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader
public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader_DistributedImpex
public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectImportErrors_RemovingMandatoryReference
- Throws:
Exception
-
shouldCollectImportErrors_RemovingMandatoryReference_DistributedImpEx
public void shouldCollectImportErrors_RemovingMandatoryReference_DistributedImpEx() throws Exception- Throws:
Exception
-
shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory_DistributedImpex
public void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory_DistributedImpex() throws Exception- Throws:
Exception
-
shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory
- Throws:
Exception
-
shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex
public void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex() throws Exception- Throws:
Exception
-
shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue
- Throws:
Exception
-
invalidCellDecoratorShouldFailMultithreadedImport
public void invalidCellDecoratorShouldFailMultithreadedImport() -
testDumpAfterErrorInCreationSingleThreaded
- Throws:
UnsupportedEncodingException
-
testDumpAfterErrorInCreationMultiThreaded
- Throws:
UnsupportedEncodingException
-
testDumpAfterErrorInCreationBatchMode
- Throws:
UnsupportedEncodingException
-
testStreamNotReadBeyondError
public void testStreamNotReadBeyondError() -
shouldImportMediaInZipFileUsingDistributedImpex
- Throws:
IOException
-
shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex
public void shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex() throws IOException- Throws:
IOException
-
testReduceMaxThreads
- Throws:
InterruptedException
-
testGrowMaxThreads
- Throws:
InterruptedException
-
testSetMaxThreadsInTheMiddleOfTheScript
- Throws:
InterruptedException
-
testParallelModeOffWithMultiThreadedImport
- Throws:
InterruptedException
-
testParallelModeMixedWithMultiThreadedImport
- Throws:
InterruptedException
-