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