public class DataImportTestUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DataImportError |
error(java.lang.String msg)
Simulates an import error with the specified message.
|
static java.util.Collection<DataImportError> |
errors(java.lang.String... messages)
Simulates an import error for each message submitted.
|
static ImportResult |
importResult(java.lang.String impexFileLoc)
Mocks an import result, which is wired up with the CronJobModel and WorkMedia.
|
static ImportResult |
successfulImportResult()
Mocks a successful import result.
|
public static DataImportError error(java.lang.String msg)
msg - an error message for the error.public static java.util.Collection<DataImportError> errors(java.lang.String... messages)
messages - an array of messages to convert to import errorspublic static ImportResult successfulImportResult()
public static ImportResult importResult(java.lang.String impexFileLoc)
impexFileLoc - path to the source of the impex file being imported, which is relative to the hybris server data
directory.Copyright © 2018 SAP SE. All Rights Reserved.