Package de.hybris.platform.impex.jalo
Class ImpExModifierTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.impex.jalo.AbstractImpExTest
-
- de.hybris.platform.impex.jalo.ImpExModifierTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ImpExModifierTest extends AbstractImpExTest
This test class is used for testing the different modifiers possible in header descriptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImpExModifierTest.TestImportProcessorEmpty extension ofDefaultImportProcessorfor testing the modifierprocessorat tests casetestModifierProcessor()(there is no other implementation of anImportProcessor).
-
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 ImpExModifierTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestImportWithLegacyHandlerOnly()voidtestImportWithNonLegacyHandlerOnly()voidtestModifierAllowNull()Tests the validation with and without modifierallowNull.voidtestModifierBatchMode()Tests the modifier batch mode.voidtestModifierCacheUniqueKeys()Tests the modifier for caching unique keys and relatedCachingExistingItemResolver.voidtestModifierCollectionDelimiter()Tests import of collections using different collection delimiters with modifier collection-delimiter.voidtestModifierDefault()Tests the default modifier in simple cases.voidtestModifierDefaultBehind()Tests the default modifier behind another modifier.voidtestModifierDefaultCollection()Tests if the default value for an collection attribute can be composed from default values from item path.voidtestModifierDefaultSpecialTranslator()Tests the default modifier in case of special translators.voidtestModifierDefaultTranslator()Tests the default modifier in case of translators.voidtestModifierForceWrite()Tests the forceWrite modifier.voidtestModifierLanguage()Tests the modifierlang.voidtestModifierPathDelimiter()Tests modifier path-delimiter.voidtestModifierPosition()Tests the modifierpos.voidtestModifierProcessor()Tests theprocessormodifier.voidtestModifierVirtual()Tests the modifier virtual.voidtestSwitchingToLegacyHandlerForImpexLegacyFlagInHeader()voidtestSwitchingToLegacyHandlerForJaloOnlyFeatures()voidtestSwitchingToLegacyHandlerUsedByDefaultNotNeededForImpexLegacyFlagInHeader()-
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
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
testModifierAllowNull
public void testModifierAllowNull()
Tests the validation with and without modifierallowNull.
-
testSwitchingToLegacyHandlerForJaloOnlyFeatures
public void testSwitchingToLegacyHandlerForJaloOnlyFeatures()
-
testSwitchingToLegacyHandlerForImpexLegacyFlagInHeader
public void testSwitchingToLegacyHandlerForImpexLegacyFlagInHeader()
-
testImportWithNonLegacyHandlerOnly
public void testImportWithNonLegacyHandlerOnly()
-
testImportWithLegacyHandlerOnly
public void testImportWithLegacyHandlerOnly()
-
testSwitchingToLegacyHandlerUsedByDefaultNotNeededForImpexLegacyFlagInHeader
public void testSwitchingToLegacyHandlerUsedByDefaultNotNeededForImpexLegacyFlagInHeader()
-
testModifierDefault
public void testModifierDefault()
Tests the default modifier in simple cases.
-
testModifierDefaultBehind
public void testModifierDefaultBehind()
Tests the default modifier behind another modifier. See CORE-3932.
-
testModifierDefaultTranslator
public void testModifierDefaultTranslator()
Tests the default modifier in case of translators. See CORE-3932.
-
testModifierDefaultSpecialTranslator
public void testModifierDefaultSpecialTranslator()
Tests the default modifier in case of special translators. See CORE-3932.
-
testModifierBatchMode
public void testModifierBatchMode()
Tests the modifier batch mode.
-
testModifierCacheUniqueKeys
public void testModifierCacheUniqueKeys()
Tests the modifier for caching unique keys and relatedCachingExistingItemResolver.
-
testModifierCollectionDelimiter
public void testModifierCollectionDelimiter() throws ImpExExceptionTests import of collections using different collection delimiters with modifier collection-delimiter.- Throws:
ImpExException
-
testModifierDefaultCollection
public void testModifierDefaultCollection()
Tests if the default value for an collection attribute can be composed from default values from item path. See PLA-5.
-
testModifierForceWrite
public void testModifierForceWrite()
Tests the forceWrite modifier. Tests only insertion of non modifiable because there are no real case where there is used a non-initial not-writable attribute : Or you have full mutable attribute- which is not a case here; Or you have non writable but modified only for initial purposes attribute;
-
testModifierPathDelimiter
public void testModifierPathDelimiter() throws java.lang.ExceptionTests modifier path-delimiter.- Throws:
java.lang.Exception
-
testModifierPosition
public void testModifierPosition()
Tests the modifierpos.
-
testModifierProcessor
public void testModifierProcessor()
Tests theprocessormodifier.
-
testModifierVirtual
public void testModifierVirtual()
Tests the modifier virtual.
-
testModifierLanguage
public void testModifierLanguage()
Tests the modifierlang.
-
-