Class DataImportTestUtils
java.lang.Object
de.hybris.platform.dataimportcommons.facades.DataImportTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataImportErrorSimulates an import error with the specified message.static Collection<DataImportError>Simulates an import error for each message submitted.static ImportResultimportResult(String impexFileLoc) Mocks an import result, which is wired up with the CronJobModel and WorkMedia.static ImportResultMocks a successful import result.
-
Method Details
-
error
Simulates an import error with the specified message.- Parameters:
msg- an error message for the error.- Returns:
- an import error
-
errors
Simulates an import error for each message submitted.- Parameters:
messages- an array of messages to convert to import errors- Returns:
- a collection of import errors with the specified messages.
-
successfulImportResult
Mocks a successful import result.- Returns:
- the mocked result.
-
importResult
Mocks an import result, which is wired up with the CronJobModel and WorkMedia. The result is neither successful nor erroneous and should be further mocked for that purpose.- Parameters:
impexFileLoc- path to the source of the impex file being imported, which is relative to the hybris server data directory.- Returns:
- the mocked result.
-