Class DefaultImportServiceIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DefaultImportServiceIntegrationTest extends ServicelayerTest
  • Constructor Details

    • DefaultImportServiceIntegrationTest

      public DefaultImportServiceIntegrationTest()
  • Method Details

    • setUp

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

      public void setLegacyMode()
    • testFileBasedImportResource

      public void testFileBasedImportResource() throws IOException
      Throws:
      IOException
    • testStreamBasedImportResource

      public void testStreamBasedImportResource() throws IOException
      Throws:
      IOException
    • testMediaBasedImportResource

      public void testMediaBasedImportResource() throws IOException
      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

      public AddressModel findAddressByFirstNameAndLastName(String firstName, String lastName)
    • shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig

      public void shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig()
    • shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig

      public void shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig()
    • shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull

      public void shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull()
    • shouldSeeFinishedStateForAsyncImport

      public void shouldSeeFinishedStateForAsyncImport() throws InterruptedException
      Throws:
      InterruptedException
    • shouldDumpLinesWithInvalidOrNoHeader

      public void shouldDumpLinesWithInvalidOrNoHeader()
    • shouldDumpLinesToLogFileWithInvalidOrNoHeaderWhenMultiThreadedImport

      public void shouldDumpLinesToLogFileWithInvalidOrNoHeaderWhenMultiThreadedImport() throws InterruptedException, IOException
      Throws:
      InterruptedException
      IOException
    • shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne

      public void shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne()
    • shouldRunImportUsingDistributedImpEx

      public void shouldRunImportUsingDistributedImpEx() throws Exception
      Throws:
      Exception
    • shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx

      public void shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx() throws Exception
      Throws:
      Exception
    • importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse

      public void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse() throws Exception
      Throws:
      Exception
    • importConfigShouldOverrideFlagForDistributedImpexRemoveOnSuccessModeSetToNone

      public void importConfigShouldOverrideFlagForDistributedImpexRemoveOnSuccessModeSetToNone()
    • flagRemoveOnSuccessModeShouldSetShouldBeRespectedIfImportConfigIsNotSet

      public void flagRemoveOnSuccessModeShouldSetShouldBeRespectedIfImportConfigIsNotSet()
    • importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue

      public void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue() throws Exception
      Throws:
      Exception
    • defaultSettingForDistributedImpexShouldBeDisabled

      public void defaultSettingForDistributedImpexShouldBeDisabled() throws Exception
      Throws:
      Exception
    • shouldEnableGloballyDistributedImpex

      public void shouldEnableGloballyDistributedImpex() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_ConflictingItemInAnInputScript

      public void shouldCollectImportErrors_ConflictingItemInAnInputScript() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx

      public void shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_ConflictingItemInADB

      public void shouldCollectImportErrors_ConflictingItemInADB() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx

      public void shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader

      public void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex

      public void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidINSERTHeader

      public void shouldCollectImportErrors_InvalidINSERTHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx

      public void shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidTypeInHeader

      public void shouldCollectImportErrors_InvalidTypeInHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex

      public void shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidINSERT_UPDATEHeader

      public void shouldCollectImportErrors_InvalidINSERT_UPDATEHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidDataInLineINSERTHeader

      public void shouldCollectImportErrors_InvalidDataInLineINSERTHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx

      public void shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader

      public void shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader() throws Exception
      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

      public void shouldCollectImportErrors_UntranslatableValue_DistributedImpex() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader

      public void shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_UntranslatableValueUPDATEeader

      public void shouldCollectImportErrors_UntranslatableValueUPDATEeader() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex

      public void shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex() throws Exception
      Throws:
      Exception
    • shouldCollectImportErrors_UntranslatableValueINSERTHeader

      public void shouldCollectImportErrors_UntranslatableValueINSERTHeader() throws Exception
      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

      public void shouldCollectImportErrors_RemovingMandatoryReference() throws Exception
      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

      public void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory() throws Exception
      Throws:
      Exception
    • shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex

      public void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex() throws Exception
      Throws:
      Exception
    • shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue

      public void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue() throws Exception
      Throws:
      Exception
    • invalidCellDecoratorShouldFailMultithreadedImport

      public void invalidCellDecoratorShouldFailMultithreadedImport()
    • testDumpAfterErrorInCreationSingleThreaded

      public void testDumpAfterErrorInCreationSingleThreaded() throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • testDumpAfterErrorInCreationMultiThreaded

      public void testDumpAfterErrorInCreationMultiThreaded() throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • testDumpAfterErrorInCreationBatchMode

      public void testDumpAfterErrorInCreationBatchMode() throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • testStreamNotReadBeyondError

      public void testStreamNotReadBeyondError()
    • shouldImportMediaInZipFileUsingDistributedImpex

      public void shouldImportMediaInZipFileUsingDistributedImpex() throws IOException
      Throws:
      IOException
    • shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex

      public void shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex() throws IOException
      Throws:
      IOException
    • testReduceMaxThreads

      public void testReduceMaxThreads() throws InterruptedException
      Throws:
      InterruptedException
    • testGrowMaxThreads

      public void testGrowMaxThreads() throws InterruptedException
      Throws:
      InterruptedException
    • testSetMaxThreadsInTheMiddleOfTheScript

      public void testSetMaxThreadsInTheMiddleOfTheScript() throws InterruptedException
      Throws:
      InterruptedException
    • testParallelModeOffWithMultiThreadedImport

      public void testParallelModeOffWithMultiThreadedImport() throws InterruptedException
      Throws:
      InterruptedException
    • testParallelModeMixedWithMultiThreadedImport

      public void testParallelModeMixedWithMultiThreadedImport() throws InterruptedException
      Throws:
      InterruptedException