Class DefaultImportServiceIntegrationTest

    • Constructor Detail

      • DefaultImportServiceIntegrationTest

        public DefaultImportServiceIntegrationTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setLegacyMode

        public void setLegacyMode()
      • testFileBasedImportResource

        public void testFileBasedImportResource()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • testStreamBasedImportResource

        public void testStreamBasedImportResource()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • testMediaBasedImportResource

        public void testMediaBasedImportResource()
                                          throws java.io.IOException
        Throws:
        java.io.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • findAddressByFirstNameAndLastName

        public AddressModel findAddressByFirstNameAndLastName​(java.lang.String firstName,
                                                              java.lang.String lastName)
      • shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig

        public void shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig()
      • shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig

        public void shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig()
      • shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull

        public void shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull()
      • shouldSeeFinishedStateForAsyncImport

        public void shouldSeeFinishedStateForAsyncImport()
                                                  throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldDumpLinesWithInvalidOrNoHeader

        public void shouldDumpLinesWithInvalidOrNoHeader()
      • shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne

        public void shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne()
      • shouldRunImportUsingDistributedImpEx

        public void shouldRunImportUsingDistributedImpEx()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx

        public void shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse

        public void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse()
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue

        public void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue()
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • defaultSettingForDistributedImpexShouldBeDisabled

        public void defaultSettingForDistributedImpexShouldBeDisabled()
                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldEnableGloballyDistributedImpex

        public void shouldEnableGloballyDistributedImpex()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_ConflictingItemInAnInputScript

        public void shouldCollectImportErrors_ConflictingItemInAnInputScript()
                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx

        public void shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx()
                                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_ConflictingItemInADB

        public void shouldCollectImportErrors_ConflictingItemInADB()
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx

        public void shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx()
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader

        public void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader()
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex

        public void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex()
                                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidINSERTHeader

        public void shouldCollectImportErrors_InvalidINSERTHeader()
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx

        public void shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx()
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidTypeInHeader

        public void shouldCollectImportErrors_InvalidTypeInHeader()
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex

        public void shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex()
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidINSERT_UPDATEHeader

        public void shouldCollectImportErrors_InvalidINSERT_UPDATEHeader()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidDataInLineINSERTHeader

        public void shouldCollectImportErrors_InvalidDataInLineINSERTHeader()
                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx

        public void shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx()
                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader

        public void shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_InvalidDataInLineUPDATEHeader_DistributedImpex

        public void shouldCollectImportErrors_InvalidDataInLineUPDATEHeader_DistributedImpex()
                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader

        public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader()
                                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex

        public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex()
                                                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValue_DistributedImpex

        public void shouldCollectImportErrors_UntranslatableValue_DistributedImpex()
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader

        public void shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader()
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValueUPDATEeader

        public void shouldCollectImportErrors_UntranslatableValueUPDATEeader()
                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex

        public void shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex()
                                                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValueINSERTHeader

        public void shouldCollectImportErrors_UntranslatableValueINSERTHeader()
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_UntranslatableValueINSERTHeader_DistributedImpex

        public void shouldCollectImportErrors_UntranslatableValueINSERTHeader_DistributedImpex()
                                                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader

        public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader()
                                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader_DistributedImpex

        public void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader_DistributedImpex()
                                                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_RemovingMandatoryReference

        public void shouldCollectImportErrors_RemovingMandatoryReference()
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectImportErrors_RemovingMandatoryReference_DistributedImpEx

        public void shouldCollectImportErrors_RemovingMandatoryReference_DistributedImpEx()
                                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory_DistributedImpex

        public void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory_DistributedImpex()
                                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory

        public void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex

        public void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex()
                                                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue

        public void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue()
                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • invalidCellDecoratorShouldFailMultithreadedImport

        public void invalidCellDecoratorShouldFailMultithreadedImport()
      • testDumpAfterErrorInCreationSingleThreaded

        public void testDumpAfterErrorInCreationSingleThreaded()
                                                        throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • testDumpAfterErrorInCreationMultiThreaded

        public void testDumpAfterErrorInCreationMultiThreaded()
                                                       throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • testDumpAfterErrorInCreationBatchMode

        public void testDumpAfterErrorInCreationBatchMode()
                                                   throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • testStreamNotReadBeyondError

        public void testStreamNotReadBeyondError()
      • shouldImportMediaInZipFileUsingDistributedImpex

        public void shouldImportMediaInZipFileUsingDistributedImpex()
                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex

        public void shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex()
                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • testReduceMaxThreads

        public void testReduceMaxThreads()
                                  throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • testGrowMaxThreads

        public void testGrowMaxThreads()
                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • testSetMaxThreadsInTheMiddleOfTheScript

        public void testSetMaxThreadsInTheMiddleOfTheScript()
                                                     throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • testParallelModeOffWithMultiThreadedImport

        public void testParallelModeOffWithMultiThreadedImport()
                                                        throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • testParallelModeMixedWithMultiThreadedImport

        public void testParallelModeMixedWithMultiThreadedImport()
                                                          throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException