Package de.hybris.platform.impex.util
Class CompanyAddressesTestImpexFileGenerator
java.lang.Object
de.hybris.platform.impex.util.CompanyAddressesTestImpexFileGenerator
Util class for creating CompanyAddresses impex files for test purposes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateCompanyAddressesTestImpexFile(int numberAddressesPerCompany, String filePath, CompanyAddressesTestImpexFileGenerator.AddressProcessMode addressProcessMode) Creates impex file for test purposes, that imports Company (along with required prerequisites: Language, Country) and Addresses related to this Company.static voidcreateCompanyAddressesTestImpexFileWithRemovingFirstTwoAddresses(int numberAddressesPerCompany, String filePath, CompanyAddressesTestImpexFileGenerator.AddressProcessMode addressProcessMode) Creates impex file for test purposes, that imports Company (along with required prerequisites: Language, Country) and Addresses related to this Company.
-
Method Details
-
createCompanyAddressesTestImpexFile
public static void createCompanyAddressesTestImpexFile(int numberAddressesPerCompany, String filePath, CompanyAddressesTestImpexFileGenerator.AddressProcessMode addressProcessMode) Creates impex file for test purposes, that imports Company (along with required prerequisites: Language, Country) and Addresses related to this Company.- Parameters:
numberAddressesPerCompany- number of Address to import that will be assigned to imported Company.filePath- specifies path and file name of impex file that will be createdaddressProcessMode- specifies process mode for importing Addresses
-
createCompanyAddressesTestImpexFileWithRemovingFirstTwoAddresses
public static void createCompanyAddressesTestImpexFileWithRemovingFirstTwoAddresses(int numberAddressesPerCompany, String filePath, CompanyAddressesTestImpexFileGenerator.AddressProcessMode addressProcessMode) Creates impex file for test purposes, that imports Company (along with required prerequisites: Language, Country) and Addresses related to this Company. When processing Addresses, firstly it imports (numberAddressesPerCompany-1) x Addresses, then removes first two imported Address items, and finally imports the last one Address.- Parameters:
numberAddressesPerCompany- number of Addresses to import. Final number of Addresses assigned to Company will be reduced by 2.filePath- specifies path and file name of impex file that will be createdaddressProcessMode- specifies process mode for importing Addresses
-