Class ProductConfigurationRuleAwareServiceImplTest
java.lang.Object
de.hybris.platform.sap.productconfig.rules.service.impl.ProductConfigurationRuleAwareServiceImplTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigModelprotected ProductConfigMessagecreateMessage(ProductConfigMessageSourceSubType mesgSubType, String key) protected voidvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
ProductConfigurationRuleAwareServiceImplTest
public ProductConfigurationRuleAwareServiceImplTest()
-
-
Method Details
-
setUp
public void setUp() -
testProvideRAOsWithNullFactContext
public void testProvideRAOsWithNullFactContext() -
testProvideRAOsWithNotNullFactContext
public void testProvideRAOsWithNotNullFactContext() -
testPrepareRuleEvaluationContext
public void testPrepareRuleEvaluationContext() -
testAdjustConfigurationRuleBasedFalseWhenRulesAreDeactivated
public void testAdjustConfigurationRuleBasedFalseWhenRulesAreDeactivated() -
testDetermineRuleEngineContextNotAvailable
public void testDetermineRuleEngineContextNotAvailable() -
testDetermineRuleEngineContextDefaultEngineContextNameAvailable
public void testDetermineRuleEngineContextDefaultEngineContextNameAvailable() -
testDetermineRuleEngineContextDefaultEngineContextCanBeDetermined
public void testDetermineRuleEngineContextDefaultEngineContextCanBeDetermined() -
testDetermineRuleEngineContextDefaultEngineContextCanBeDeterminedReturnsNull
public void testDetermineRuleEngineContextDefaultEngineContextCanBeDeterminedReturnsNull() -
createConfigModel
-
testApplyRulesEmptyResult
public void testApplyRulesEmptyResult() -
testApplyRulesSetDefaultValue
public void testApplyRulesSetDefaultValue() -
testApplyRulesChangeDefaultValue
public void testApplyRulesChangeDefaultValue() -
testApplyRulesTryToSetNonAssignableValue
public void testApplyRulesTryToSetNonAssignableValue() -
testApplyRulesTryToSetValueForReadOnlyCstic
public void testApplyRulesTryToSetValueForReadOnlyCstic() -
testApplyRulesTryToSetValueUnconstrainedCstic
public void testApplyRulesTryToSetValueUnconstrainedCstic() -
testApplyRulesTryToSetNonExistingCstic
public void testApplyRulesTryToSetNonExistingCstic() -
testApplyRulesAddMultiValue
public void testApplyRulesAddMultiValue() -
testApplyRulesOtherActionRAO
public void testApplyRulesOtherActionRAO() -
testApplyRulesAddExistingMultiValue
public void testApplyRulesAddExistingMultiValue() -
testApplyRulesRemoveAssignableValue
public void testApplyRulesRemoveAssignableValue() -
testGetRuleActionStrategy
public void testGetRuleActionStrategy() -
testGetRuleActionStrategyEmptyMap
public void testGetRuleActionStrategyEmptyMap() -
testGetRuleActionStrategyWrongStrategy
public void testGetRuleActionStrategyWrongStrategy() -
testRemoveMessageBeforeNextStep_true
public void testRemoveMessageBeforeNextStep_true() -
testRemoveMessageBeforeNextStep_wrongSubType
public void testRemoveMessageBeforeNextStep_wrongSubType() -
testRemoveMessageBeforeNextStep_wrongStep
public void testRemoveMessageBeforeNextStep_wrongStep() -
createMessage
protected ProductConfigMessage createMessage(ProductConfigMessageSourceSubType mesgSubType, String key) -
testRemoveMessagesRecomputedOnNextStep
public void testRemoveMessagesRecomputedOnNextStep() -
testAfterConfigCreated_cacheOnce
public void testAfterConfigCreated_cacheOnce() -
testAfterConfigCreated_cacheTwice
public void testAfterConfigCreated_cacheTwice() -
testAfterDefaultConfigCreated_cacheTwice
public void testAfterDefaultConfigCreated_cacheTwice() -
testAfterDefaultConfigCreated_cacheOnceOnMethodLevel
public void testAfterDefaultConfigCreated_cacheOnceOnMethodLevel() -
testTransferVariantConditions
public void testTransferVariantConditions() -
testProvideConfigurationModelNoRuleEngine
- Throws:
ConfigurationEngineException
-
testAdjustVariantConditionsUsingOptions
- Throws:
ConfigurationEngineException
-
testAdjustVariantConditionsUsingOptionsCurrentPriceDate
public void testAdjustVariantConditionsUsingOptionsCurrentPriceDate() throws ConfigurationEngineException- Throws:
ConfigurationEngineException
-
testSessionService
public void testSessionService() -
testIsStatefulCall
public void testIsStatefulCall() -
testIsStatefulCallUnknownSessionAttribute
public void testIsStatefulCallUnknownSessionAttribute() -
testIsStatefulCallStateless
public void testIsStatefulCallStateless() -
testGetRelatedCartInStatefulScenario
public void testGetRelatedCartInStatefulScenario() -
testGetRelatedCartSessionIndicatesStateless
public void testGetRelatedCartSessionIndicatesStateless() -
tesGetRelatedCartStatelessWrongLink
public void tesGetRelatedCartStatelessWrongLink() -
tesGetRelatedCartStatelessNoLink
public void tesGetRelatedCartStatelessNoLink() -
testGetRelatedStateful
public void testGetRelatedStateful() -
testGetRelatedStatefulNoSessionCart
public void testGetRelatedStatefulNoSessionCart() -
testUserService
public void testUserService() -
testCreateEmptyCart
public void testCreateEmptyCart() -
testTryLockSuccess
- Throws:
InterruptedException
-
testTryLockFails
- Throws:
InterruptedException
-
testTryInterupped
- Throws:
InterruptedException
-
prepareLockTest
protected void prepareLockTest() -
testAdjustConfigurationModelConfiguration
public void testAdjustConfigurationModelConfiguration() -
testAdjustConfigurationModelOverview
public void testAdjustConfigurationModelOverview() -
testRetrieveConfigurationModel
- Throws:
ConfigurationEngineException
-
testRetrieveConfigurationOverview
- Throws:
ConfigurationEngineException
-