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
@IntegrationTest public class ImpExImportTest extends AbstractImpExTest
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, windows1252
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ImpExImportTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckUnit(Unit toCheck, ComposedType composedType, java.lang.String code, double conversion, java.lang.String type, java.lang.String nameDe, java.lang.String nameEn)Checks for given unit if it has all given attributes.voidtestAlternativePatterns()Tests the alternative pattern syntax of header for import.voidtestCollectionModification()Tests adding and removing of values to an collection using the different possibilities.voidtestDumpingLines()Tests the import with dumped lines.voidtestDuplicatedAddresses()Tests the import of addresses if duplicate flag is set.voidtestImportingPrivateAttributes()Tests if the import of private attributes is possible.voidtestImportWithDocumentID()Tests the document ID column descriptor while import.voidtestInsertMode()Test the insert in insert mode.voidtestInsertMode_WithSubtype()voidtestInsertUpdateMode_Insert()voidtestInsertUpdateMode_UpdateWithSubtype()voidtestLocalizedReference()See PLA-5010.voidtestModeInsertUpdate()Tests the import in insert update mode.voidtestModeRemove()Tests the import in remove mode.voidtestModeUpdate()Tests the import in update mode.voidtestModeUpdateWithUniqueAttribute()Tests the update mode for updating unique attributes.voidtestModeUpdateWithUniqueLocalizedAttribut()Tests the update mode using localized attributes with unique modifier.voidtestModificatedTimeByInsertUpdate()voidtestReferencesWithNullValues()voidtestRemoveNotExistingComposedTypeWithDumpingNotAllowed()voidtestSingletonImport()voidtestUpdateMode_WithSubtype()voidtestUserRightsImportComma()Tests the import of user rights using comma as separator.voidtestUserRightsImportSemicolon()Tests the import of user rights using semicolon as separator.-
Methods inherited from class de.hybris.platform.impex.jalo.AbstractImpExTest
initJaloItems, setLegacyMode
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
testImportWithDocumentID
public void testImportWithDocumentID() throws JaloBusinessException, java.io.IOExceptionTests the document ID column descriptor while import.- Throws:
JaloBusinessExceptionjava.io.IOException
-
testRemoveNotExistingComposedTypeWithDumpingNotAllowed
public void testRemoveNotExistingComposedTypeWithDumpingNotAllowed() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUserRightsImportSemicolon
public void testUserRightsImportSemicolon() throws ImpExException, ConsistencyCheckExceptionTests the import of user rights using semicolon as separator.
-
testUserRightsImportComma
public void testUserRightsImportComma() throws ImpExException, ConsistencyCheckExceptionTests the import of user rights using comma as separator.
-
testAlternativePatterns
public void testAlternativePatterns() throws ImpExExceptionTests 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
public void testCollectionModification() throws ConsistencyCheckException, ImpExExceptionTests adding and removing of values to an collection using the different possibilities. This functionality is described by CORE-3484.
-
testModeUpdate
public void testModeUpdate() throws java.io.IOException, ImpExExceptionTests the import in update mode.- Throws:
java.io.IOExceptionImpExException
-
testModeRemove
public void testModeRemove() throws ConsistencyCheckException, ImpExExceptionTests the import in remove mode.
-
testModeInsertUpdate
public void testModeInsertUpdate() throws ImpExExceptionTests 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, java.lang.String code, double conversion, java.lang.String type, java.lang.String nameDe, java.lang.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, java.lang.InterruptedException- Throws:
ImpExExceptionJaloDuplicateQualifierExceptionJaloInvalidParameterExceptionJaloSecurityExceptionjava.lang.InterruptedException
-
testInsertMode_WithSubtype
@Transactional public void testInsertMode_WithSubtype() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInsertUpdateMode_Insert
@Transactional public void testInsertUpdateMode_Insert() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInsertUpdateMode_UpdateWithSubtype
@Transactional public void testInsertUpdateMode_UpdateWithSubtype() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testUpdateMode_WithSubtype
@Transactional public void testUpdateMode_WithSubtype() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testReferencesWithNullValues
public void testReferencesWithNullValues() throws JaloGenericCreationException, JaloAbstractTypeException, JaloItemNotFoundException, ImpExException
-
-