Package de.hybris.platform.impex.jalo
Class ImpExImportTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.impex.jalo.AbstractImpExTest
de.hybris.platform.impex.jalo.ImpExImportTest
- All Implemented Interfaces:
JaloSessionHolder
This test class contains all tests considering the import process of the impex extension.
-
Field Summary
Fields 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 voidcheckUnit(Unit toCheck, ComposedType composedType, String code, double conversion, String type, String nameDe, String nameEn) Checks for given unit if it has all given attributes.voidTests the alternative pattern syntax of header for import.voidTests adding and removing of values to an collection using the different possibilities.voidTests the import with dumped lines.voidTests the import of addresses if duplicate flag is set.voidTests if the import of private attributes is possible.voidTests the document ID column descriptor while import.voidTest the insert in insert mode.voidvoidvoidvoidSee PLA-5010.voidvoidvoidvoidTests the import in insert update mode.voidTests the import in remove mode.voidTests the import in update mode.voidTests the update mode for updating unique attributes.voidTests the update mode using localized attributes with unique modifier.voidvoidvoidvoidvoidvoidTests the import of user rights using comma as separator.voidTests the import of user rights using semicolon as separator.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
-
Constructor Details
-
ImpExImportTest
public ImpExImportTest()
-
-
Method Details
-
testImportWithDocumentID
Tests the document ID column descriptor while import.- Throws:
JaloBusinessExceptionIOException
-
testRemoveNotExistingComposedTypeWithDumpingNotAllowed
- Throws:
Exception
-
testUserRightsImportSemicolon
Tests the import of user rights using semicolon as separator. -
testUserRightsImportComma
Tests the import of user rights using comma as separator. -
testAlternativePatterns
Tests the alternative pattern syntax of header for import.- Throws:
ImpExException
-
testImportingPrivateAttributes
public void testImportingPrivateAttributes() throws JaloDuplicateQualifierException, JaloSecurityException, ImpExExceptionTests if the import of private attributes is possible. -
testCollectionModification
Tests adding and removing of values to an collection using the different possibilities. This functionality is described by CORE-3484. -
testModeUpdate
Tests the import in update mode.- Throws:
IOExceptionImpExException
-
testModeRemove
Tests the import in remove mode. -
testModeInsertUpdate
Tests the import in insert update mode.- Throws:
ImpExException
-
testInsertMode
public void testInsertMode()Test the insert in insert mode. -
testDumpingLines
public void testDumpingLines()Tests the import with dumped lines. -
testModeUpdateWithUniqueLocalizedAttribut
public void testModeUpdateWithUniqueLocalizedAttribut()Tests the update mode using localized attributes with unique modifier. (The item resolving with unique localized attributes is the test case). See CORE-4204. -
testModeUpdateWithUniqueAttribute
public void testModeUpdateWithUniqueAttribute()Tests the update mode for updating unique attributes. See CORE-3377. -
testLocalizedReference
public void testLocalizedReference()See PLA-5010. -
testDuplicatedAddresses
public void testDuplicatedAddresses()Tests the import of addresses if duplicate flag is set. (There should not be duplicated while import) See CORE-3655. -
testSingletonImport
public void testSingletonImport() -
checkUnit
protected void checkUnit(Unit toCheck, ComposedType composedType, String code, double conversion, String type, String nameDe, String nameEn) Checks for given unit if it has all given attributes.- Parameters:
toCheck- unit to checkcomposedType- expected typecode- expected codeconversion- expected conversiontype- expected unit typenameDe- expected german languagenameEn- expected english language
-
testModificatedTimeByInsertUpdate
public void testModificatedTimeByInsertUpdate() throws ImpExException, JaloDuplicateQualifierException, JaloInvalidParameterException, JaloSecurityException, InterruptedException -
testInsertMode_WithSubtype
- Throws:
Exception
-
testInsertUpdateMode_Insert
- Throws:
Exception
-
testInsertUpdateMode_UpdateWithSubtype
- Throws:
Exception
-
testUpdateMode_WithSubtype
- Throws:
Exception
-
testReferencesWithNullValues
public void testReferencesWithNullValues() throws JaloGenericCreationException, JaloAbstractTypeException, JaloItemNotFoundException, ImpExException -
testMergeAddsNewItemWhenItDoesntYetExist
public void testMergeAddsNewItemWhenItDoesntYetExist() throws ConsistencyCheckException, ImpExException -
testMergeDoesntAddTheSameItemTwice
-
testMergeOnColumnLevelDoesntAddTheSameItemTwice
public void testMergeOnColumnLevelDoesntAddTheSameItemTwice() throws ConsistencyCheckException, ImpExException
-