@IntegrationTest public class ImpExTest extends AbstractImpExTest
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
nextLine |
english, german, utf8, windows1252jaloSession| Constructor and Description |
|---|
ImpExTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkColumnDescriptor(StandardColumnDescriptor columnDescriptor,
HeaderDescriptor header,
java.lang.String qualifier,
int position,
AttributeDescriptor attributeDescriptor,
boolean localized,
boolean initial,
boolean readonly,
boolean partof,
boolean mandatory,
boolean unique,
java.lang.String languageIso,
java.util.Map modifiers)
Checks if given column descriptor has all given attributes.
|
protected java.lang.String |
getOtherRequiredAttributes(ComposedType composedType,
java.util.List alreadyGot)
Gets semicolon separated string with all attributes of given type not listed in
alreadyGot. |
protected void |
removeQuietly(Item... items) |
void |
testAbstractInsertUpdate()
Tests if inserts and updates of abstract types are handled correct.
See PLA-5106. |
void |
testBeanShell()
Tests the usage of bean shell.
|
void |
testBeanShellAfterEach()
Tests the
afterEach bean shell marker. |
void |
testBeanShellDiscardAndDumpLine()
Tests the methods
discardLine and dumpLine for bean shell usage. |
void |
testBeanShellExternalSyntaxParsing()
Tests external syntax parsing.
|
void |
testBeanShellIf()
Tests the bean shell
if condition. |
void |
testBeanShellIncludeExternaData()
Tests the including of external data in chained case.
|
void |
testBeanShellIncludeExternaDataChained()
Tests the
includeExternalData statement of bean shell. |
void |
testBeanShellInsertLine()
Tests bean shell method
insetLine. |
void |
testBeforeEach()
Tests the methods
discardLine and dumpLine for bean shell usage. |
void |
testBeforeEachMultiThread() |
void |
testCreateItem()
Tests the
ImpExManager.createItem(String, String, String) method. |
void |
testDefinitions()
Tests the usage of definitions.
|
void |
testFixedLengthCSVReader()
Tests the
FixedLengthCSVReader. |
void |
testHeaderDetection()
Checks if header lines are detected correct.
|
void |
testHeaderErrors()
Tests the header validation with different errors.
|
void |
testHeaderParsing()
Tests the correct parsing of headers using ImpExReader.
|
void |
testIllegalAttributeType()
Tests for correct errors if using illegal attribute types in header descriptor.
|
void |
testIncludeCSVFromProperties() |
void |
testIncludeCSVFromPropertiesIgnoreMissingValues() |
void |
testLocalizedAttributePartialChange()
Tests the partial update of localized attributes, means the update of only some localizations.
|
void |
testParseColumnDescriptor()
Tests the
AbstractDescriptor.parseColumnDescriptor(String) method. |
void |
testReaderManager()
Test the
ReaderManager class. |
void |
testReferenceByRelation()
Tests usage of relation as reference type in header descriptor.
|
void |
testSiblingAttributes()
Tests different kinds of equal attribute name in header.
|
void |
testSubtypeReferenceExpression()
Tests the usage of subtype references in header descriptor.
|
initJaloItems, setLegacyModeestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void testSiblingAttributes()
protected java.lang.String getOtherRequiredAttributes(ComposedType composedType, java.util.List alreadyGot)
alreadyGot.composedType - type for which all attributes are neededalreadyGot - list of attributes which have to be excludedpublic void testHeaderErrors()
public void testHeaderDetection()
public void testHeaderParsing()
public void testAbstractInsertUpdate()
public void testSubtypeReferenceExpression()
public void testBeanShellAfterEach()
afterEach bean shell marker.public void testBeanShell()
public void testBeanShellIf()
if condition.public void testBeanShellIncludeExternaDataChained()
includeExternalData statement of bean shell.public void testIncludeCSVFromProperties()
public void testIncludeCSVFromPropertiesIgnoreMissingValues()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testReaderManager()
ReaderManager class.public void testBeanShellIncludeExternaData()
public void testLocalizedAttributePartialChange()
public void testFixedLengthCSVReader()
FixedLengthCSVReader.public void testBeanShellExternalSyntaxParsing()
public void testDefinitions()
public void testIllegalAttributeType()
protected void checkColumnDescriptor(StandardColumnDescriptor columnDescriptor, HeaderDescriptor header, java.lang.String qualifier, int position, AttributeDescriptor attributeDescriptor, boolean localized, boolean initial, boolean readonly, boolean partof, boolean mandatory, boolean unique, java.lang.String languageIso, java.util.Map modifiers)
columnDescriptor - column descriptor which will be checkedheader - expected headerqualifier - expected qualifierposition - expected positionattributeDescriptor - expected attribute descriptorlocalized - expected localized flaginitial - expected initial flagreadonly - expected readonly flagpartof - expected partof flagmandatory - expected mandatory flagunique - expected unique flaglanguageIso - expected languageIsomodifiers - expected modifierspublic void testReferenceByRelation()
protected void removeQuietly(Item... items)
public void testBeanShellInsertLine()
insetLine.public void testBeanShellDiscardAndDumpLine()
discardLine and dumpLine for bean shell usage.public void testBeforeEach()
throws java.io.IOException
discardLine and dumpLine for bean shell usage.java.io.IOExceptionpublic void testBeforeEachMultiThread()
throws java.io.IOException
java.io.IOExceptionpublic void testCreateItem()
ImpExManager.createItem(String, String, String) method. See PLA-8.public void testParseColumnDescriptor()
AbstractDescriptor.parseColumnDescriptor(String) method.Copyright © 2018 SAP SE. All Rights Reserved.