Package de.hybris.platform.impex.jalo
Class ImpExTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.impex.jalo.AbstractImpExTest
de.hybris.platform.impex.jalo.ImpExTest
- All Implemented Interfaces:
JaloSessionHolder
This test cases check the script parsing and header validation of the impex extension.
-
Field Summary
FieldsFields inherited from class de.hybris.platform.impex.jalo.AbstractImpExTest
english, german, utf8, windows1252Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckColumnDescriptor(StandardColumnDescriptor columnDescriptor, HeaderDescriptor header, String qualifier, int position, AttributeDescriptor attributeDescriptor, boolean localized, boolean initial, boolean readonly, boolean partof, boolean mandatory, boolean unique, String languageIso, Map modifiers) Checks if given column descriptor has all given attributes.protected StringgetOtherRequiredAttributes(ComposedType composedType, List alreadyGot) Gets semicolon separated string with all attributes of given type not listed inalreadyGot.protected voidremoveQuietly(Item... items) voidTests if inserts and updates of abstract types are handled correct.
See PLA-5106.voidTests the usage of bean shell.voidTests theafterEachbean shell marker.voidTests the methodsdiscardLineanddumpLinefor bean shell usage.voidTests external syntax parsing.voidTests the bean shellifcondition.voidTests the including of external data in chained case.voidTests theincludeExternalDatastatement of bean shell.voidTests bean shell methodinsetLine.voidTests the methodsdiscardLineanddumpLinefor bean shell usage.voidvoidTests theImpExManager.createItem(String, String, String)method.voidTests the usage of definitions.voidTests theFixedLengthCSVReader.voidChecks if header lines are detected correct.voidTests the header validation with different errors.voidTests the correct parsing of headers using ImpExReader.voidTests for correct errors if using illegal attribute types in header descriptor.voidvoidvoidTests the partial update of localized attributes, means the update of only some localizations.voidTests theAbstractDescriptor.parseColumnDescriptor(String)method.voidTest theReaderManagerclass.voidTests usage of relation as reference type in header descriptor.voidTests different kinds of equal attribute name in header.voidTests the usage of subtype references in header descriptor.Methods inherited from class de.hybris.platform.impex.jalo.AbstractImpExTest
initJaloItems, setLegacyModeMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
nextLine
-
-
Constructor Details
-
ImpExTest
public ImpExTest()
-
-
Method Details
-
testSiblingAttributes
public void testSiblingAttributes()Tests different kinds of equal attribute name in header. -
getOtherRequiredAttributes
Gets semicolon separated string with all attributes of given type not listed inalreadyGot.- Parameters:
composedType- type for which all attributes are neededalreadyGot- list of attributes which have to be excluded- Returns:
- semicolon separated string of attributes
-
testHeaderErrors
public void testHeaderErrors()Tests the header validation with different errors. -
testHeaderDetection
public void testHeaderDetection()Checks if header lines are detected correct. See PLA-5115. -
testHeaderParsing
public void testHeaderParsing()Tests the correct parsing of headers using ImpExReader. -
testAbstractInsertUpdate
public void testAbstractInsertUpdate()Tests if inserts and updates of abstract types are handled correct.
See PLA-5106. -
testSubtypeReferenceExpression
public void testSubtypeReferenceExpression()Tests the usage of subtype references in header descriptor. -
testBeanShellAfterEach
public void testBeanShellAfterEach()Tests theafterEachbean shell marker. -
testBeanShell
public void testBeanShell()Tests the usage of bean shell. -
testBeanShellIf
public void testBeanShellIf()Tests the bean shellifcondition. -
testBeanShellIncludeExternaDataChained
public void testBeanShellIncludeExternaDataChained()Tests theincludeExternalDatastatement of bean shell. -
testIncludeCSVFromProperties
public void testIncludeCSVFromProperties() -
testIncludeCSVFromPropertiesIgnoreMissingValues
- Throws:
ConsistencyCheckException
-
testReaderManager
public void testReaderManager()Test theReaderManagerclass. -
testBeanShellIncludeExternaData
public void testBeanShellIncludeExternaData()Tests the including of external data in chained case. -
testLocalizedAttributePartialChange
public void testLocalizedAttributePartialChange()Tests the partial update of localized attributes, means the update of only some localizations. -
testFixedLengthCSVReader
public void testFixedLengthCSVReader()Tests theFixedLengthCSVReader. -
testBeanShellExternalSyntaxParsing
public void testBeanShellExternalSyntaxParsing()Tests external syntax parsing. -
testDefinitions
public void testDefinitions()Tests the usage of definitions. -
testIllegalAttributeType
public void testIllegalAttributeType()Tests for correct errors if using illegal attribute types in header descriptor. -
checkColumnDescriptor
protected void checkColumnDescriptor(StandardColumnDescriptor columnDescriptor, HeaderDescriptor header, String qualifier, int position, AttributeDescriptor attributeDescriptor, boolean localized, boolean initial, boolean readonly, boolean partof, boolean mandatory, boolean unique, String languageIso, Map modifiers) Checks if given column descriptor has all given attributes.- Parameters:
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 modifiers
-
testReferenceByRelation
public void testReferenceByRelation()Tests usage of relation as reference type in header descriptor. -
removeQuietly
-
testBeanShellInsertLine
public void testBeanShellInsertLine()Tests bean shell methodinsetLine. -
testBeanShellDiscardAndDumpLine
public void testBeanShellDiscardAndDumpLine()Tests the methodsdiscardLineanddumpLinefor bean shell usage. -
testBeforeEach
Tests the methodsdiscardLineanddumpLinefor bean shell usage.- Throws:
IOException
-
testBeforeEachMultiThread
- Throws:
IOException
-
testCreateItem
public void testCreateItem()Tests theImpExManager.createItem(String, String, String)method. See PLA-8. -
testParseColumnDescriptor
public void testParseColumnDescriptor()Tests theAbstractDescriptor.parseColumnDescriptor(String)method.
-