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 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.void
testAlternativePatterns()
Tests the alternative pattern syntax of header for import.void
testCollectionModification()
Tests adding and removing of values to an collection using the different possibilities.void
testDumpingLines()
Tests the import with dumped lines.void
testDuplicatedAddresses()
Tests the import of addresses if duplicate flag is set.void
testImportingPrivateAttributes()
Tests if the import of private attributes is possible.void
testImportWithDocumentID()
Tests the document ID column descriptor while import.void
testInsertMode()
Test the insert in insert mode.void
testInsertMode_WithSubtype()
void
testInsertUpdateMode_Insert()
void
testInsertUpdateMode_UpdateWithSubtype()
void
testLocalizedReference()
See PLA-5010.void
testModeInsertUpdate()
Tests the import in insert update mode.void
testModeRemove()
Tests the import in remove mode.void
testModeUpdate()
Tests the import in update mode.void
testModeUpdateWithUniqueAttribute()
Tests the update mode for updating unique attributes.void
testModeUpdateWithUniqueLocalizedAttribut()
Tests the update mode using localized attributes with unique modifier.void
testModificatedTimeByInsertUpdate()
void
testReferencesWithNullValues()
void
testSingletonImport()
void
testUpdateMode_WithSubtype()
void
testUserRightsImportComma()
Tests the import of user rights using comma as separator.void
testUserRightsImportSemicolon()
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.IOException
Tests the document ID column descriptor while import.- Throws:
JaloBusinessException
java.io.IOException
-
testUserRightsImportSemicolon
public void testUserRightsImportSemicolon() throws ImpExException, ConsistencyCheckException
Tests the import of user rights using semicolon as separator.
-
testUserRightsImportComma
public void testUserRightsImportComma() throws ImpExException, ConsistencyCheckException
Tests the import of user rights using comma as separator.
-
testAlternativePatterns
public void testAlternativePatterns() throws ImpExException
Tests the alternative pattern syntax of header for import.- Throws:
ImpExException
-
testImportingPrivateAttributes
public void testImportingPrivateAttributes() throws JaloDuplicateQualifierException, JaloSecurityException, ImpExException
Tests if the import of private attributes is possible.
-
testCollectionModification
public void testCollectionModification() throws ConsistencyCheckException, ImpExException
Tests 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, ImpExException
Tests the import in update mode.- Throws:
java.io.IOException
ImpExException
-
testModeRemove
public void testModeRemove() throws ConsistencyCheckException, ImpExException
Tests the import in remove mode.
-
testModeInsertUpdate
public void testModeInsertUpdate() throws ImpExException
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, 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:
ImpExException
JaloDuplicateQualifierException
JaloInvalidParameterException
JaloSecurityException
java.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
-
-