@IntegrationTest public class DefaultImportServiceIntegrationTest extends ServicelayerTest
jaloSession| Constructor and Description |
|---|
DefaultImportServiceIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void setLegacyMode()
public void testFileBasedImportResource()
throws java.io.IOException
java.io.IOExceptionpublic void testStreamBasedImportResource()
throws java.io.IOException
java.io.IOExceptionpublic void testMediaBasedImportResource()
throws java.io.IOException
java.io.IOExceptionpublic void testImportByResource()
public void testImportByConfig()
public void testImportByConfigWithError()
public void testImportByConfigWithErrorFailSafe()
public void testCreateExportImportJobs()
public void shouldImportScriptContainingInsertUniquelessItemUsingDistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic AddressModel findAddressByFirstNameAndLastName(java.lang.String firstName, java.lang.String lastName)
public void shouldImportScriptWithLegacyModeOnWhenGlobalSwitchIsOffUsingImportConfig()
public void shouldImportScriptWithLegacyModeOffWhenGlobalSwitchIsOnUsingImportConfig()
public void shouldImportScriptWithGlobalModeWhenImportConfigHasLegacyModeNull()
public void shouldSeeFinishedStateForAsyncImport()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shouldDumpLinesWithInvalidOrNoHeader()
public void shouldNotImportLinesWithPreviousHeaderIfInvalidCurrentOne()
public void shouldRunImportUsingDistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldDumpUnresolvedLinesIntoResultingCronJobUsingDistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToFalse()
throws java.lang.Exception
java.lang.Exceptionpublic void importConfigShouldOverrideGlobalFlagForDistributedImpexSetToTrue()
throws java.lang.Exception
java.lang.Exceptionpublic void defaultSettingForDistributedImpexShouldBeDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldEnableGloballyDistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_ConflictingItemInAnInputScript()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_ConflictingItemInAnInputScript_DistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_ConflictingItemInADB()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_ConflictingItemInADB_DistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_MissingMandatoryFieldINSERTHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidINSERTHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidINSERTHeader_DistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidTypeInHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidTypeInHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidINSERT_UPDATEHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidDataInLineINSERTHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidDataInLineINSERTHeader_DistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InsufficientDataInLineUPDATEHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_InvalidDataInLineUPDATEHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataINSERT_UPDATEHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValue_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValueINSERT_UPDATEHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValueUPDATEeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValueUPDATEHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValueINSERTHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_UntranslatableValueINSERTHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_NonExistentNotMandatoryReferenceInDataUPDATEHeader_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_RemovingMandatoryReference()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectImportErrors_RemovingMandatoryReference_DistributedImpEx()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory_DistributedImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldCollectErrors_UpdatingSuperCategoriesWithNonExistentCategory()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValueInDistributeImpex()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldUpdateExistingAttributeAndMakeItEmptyByImportingEmptyCellValue()
throws java.lang.Exception
java.lang.Exceptionpublic void invalidCellDecoratorShouldFailMultithreadedImport()
public void testDumpAfterErrorInCreationSingleThreaded()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void testDumpAfterErrorInCreationMultiThreaded()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void testDumpAfterErrorInCreationBatchMode()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic void testStreamNotReadBeyondError()
public void shouldImportMediaInZipFileUsingDistributedImpex()
throws java.io.IOException
java.io.IOExceptionpublic void shouldImportMediaInZipFileWithCustomMainScriptUsingDistributedImpex()
throws java.io.IOException
java.io.IOExceptionpublic void testReduceMaxThreads()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testGrowMaxThreads()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testSetMaxThreadsInTheMiddleOfTheScript()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testParallelModeOffWithMultiThreadedImport()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testParallelModeMixedWithMultiThreadedImport()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2018 SAP SE. All Rights Reserved.