public class ServicelayerTestLogic
extends java.lang.Object
| Constructor and Description |
|---|
ServicelayerTestLogic() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createCoreData() |
static void |
createDefaultCatalog() |
static void |
createDefaultUsers() |
static void |
createHardwareCatalog() |
protected static void |
importCsv(java.lang.String csvFile,
java.lang.String encoding)
Imports given csv file from classpath using given encoding.
|
void |
importData(ImpExResource resource,
ImportService importService)
Imports given resource.
|
ImportResult |
importData(ImportConfig config,
ImportService importService)
Performs import using provided config.
|
void |
importData(java.lang.String resource,
java.lang.String encoding,
ImportService importService)
Imports given file from classpath using given encoding.
|
protected static void |
importStream(java.io.InputStream is,
java.lang.String encoding,
java.lang.String resourceName) |
protected static void |
importStream(java.io.InputStream is,
java.lang.String encoding,
java.lang.String resourceName,
boolean hijackExceptions) |
protected boolean |
isPrefetchModeNone()
method returns true if configured attribute prefetch mode is NONE.
|
public static void createCoreData()
throws java.lang.Exception
java.lang.Exceptionpublic static void createDefaultCatalog()
throws java.lang.Exception
java.lang.Exceptionpublic static void createHardwareCatalog()
throws java.lang.Exception
java.lang.Exceptionpublic static void createDefaultUsers()
throws java.lang.Exception
java.lang.Exceptionpublic void importData(java.lang.String resource,
java.lang.String encoding,
ImportService importService)
throws ImpExException
resource - location of classpath resource that will be importedencoding - encoding of classpath resourceImpExExceptionpublic void importData(ImpExResource resource, ImportService importService) throws ImpExException
resource - impex resource to loadImpExExceptionpublic ImportResult importData(ImportConfig config, ImportService importService) throws ImpExException
config - with import details.ImpExExceptionprotected static void importCsv(java.lang.String csvFile,
java.lang.String encoding)
throws ImpExException
csvFile - name of file to import from classpathencoding - encoding to useImpExExceptionprotected static void importStream(java.io.InputStream is,
java.lang.String encoding,
java.lang.String resourceName)
throws ImpExException
ImpExExceptionprotected static void importStream(java.io.InputStream is,
java.lang.String encoding,
java.lang.String resourceName,
boolean hijackExceptions)
throws ImpExException
ImpExExceptionprotected boolean isPrefetchModeNone()
Copyright © 2018 SAP SE. All Rights Reserved.