| Modifier and Type | Method and Description |
|---|---|
static ImportResult |
ImportTestUtils.importResult(String impexFileLoc)
Mocks an import result, which is wired up with the CronJobModel and WorkMedia.
|
static ImportResult |
ImportTestUtils.importResultWithLogErrors(String impexFileLoc,
String errLogText)
Mocks an import result with errors present in the error log.
|
static ImportResult |
ImportTestUtils.importResultWithUnresolvedLineErrors(String impexFileLoc,
String errLogText,
InputStream mediaStream)
Mocks an import result with errors present in the unresolved lines.
|
static ImportResult |
ImportTestUtils.successfulImportResult()
Mocks a successful import result.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ImportTestUtils.makeResultSuccessful(ImportResult result)
Takes mock of an
ImportResult and finishes stubbing to simulate success import result. |
static void |
ImportTestUtils.makeResultWithErrors(ImportResult res,
String errLogText)
Takes mock of an
ImportResult and finishes stubbing to simulate errors present in the result. |
static void |
ImportTestUtils.makeResultWithErrors(ImportResult res,
String errLogText,
MediaService mediaService,
InputStream mediaStream)
Takes mock of an
ImportResult and finishes stubbing to simulate errors present in the result. |
static void |
ImportTestUtils.makeResultWithMediaServiceException(ImportResult res,
MediaService mediaService)
Takes mock of an
ImportResult and throws an IOException when calling the mediaService |
| Modifier and Type | Method and Description |
|---|---|
ItemImportResult |
ImportResultConverter.convert(ImportResult importRes)
Converts service import result to item import result
|
| Modifier and Type | Method and Description |
|---|---|
ItemImportResult |
ImportErrorsConverter.convert(ImportResult importRes) |
| Modifier and Type | Method and Description |
|---|---|
ImportResult |
ImportService.importData(ImpExResource script)
Imports platform data using given impex import script.
|
ImportResult |
ImportService.importData(ImportConfig config)
Imports platform data.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<? extends ImpExError> |
ImportService.collectImportErrors(ImportResult result)
Allows to collect import error objects built from import result dump.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImportCronJobResult
Implementation based on an import cronjob.
|
| Modifier and Type | Method and Description |
|---|---|
ImportResult |
DefaultImportService.importData(ImpExResource script) |
ImportResult |
DefaultImportService.importData(ImportConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Stream<? extends ImpExError> |
DefaultImportService.collectImportErrors(ImportResult result) |
Copyright © 2017 SAP SE. All Rights Reserved.