Class RuleSubsetOrderEntryPercentageDiscountRAOActionUnitTest
java.lang.Object
de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleSubsetProductActionUnitTest
de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl.RuleSubsetOrderEntryPercentageDiscountRAOActionUnitTest
@UnitTest
public class RuleSubsetOrderEntryPercentageDiscountRAOActionUnitTest
extends AbstractRuleSubsetProductActionUnitTest
-
Field Summary
Fields inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleSubsetProductActionUnitTest
cart, consumptionSupport, EUR, ruleActionContext, ruleEngineCalculationService, threshold, USD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidWhen the getEntriesDiscountDistributeStrategy method is called by the subset percentage discount classvoidSelected currency is not the same as the CurrencyIsoCode of the CartvoidWhen the container's total value has not reached the input discount threshold and Consumption is not enabledvoidWhen the container's total value has reached the input discount threshold and Consumption is enabledMethods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleSubsetProductActionUnitTest
createCart, createDistributeStrategyRPD, createQualifyingContainers, createTargetProductsContainers, getRuleSubsetOrderEntryFixedDiscountRAOAction, getRuleSubsetOrderEntryPercentageDiscountRAOAction, setUpAbstractRuleSubsetProductActionUnitTest
-
Constructor Details
-
RuleSubsetOrderEntryPercentageDiscountRAOActionUnitTest
public RuleSubsetOrderEntryPercentageDiscountRAOActionUnitTest()
-
-
Method Details
-
setUp
public void setUp() -
testPerformActionInternalWhenCurrencyDiff
public void testPerformActionInternalWhenCurrencyDiff()Selected currency is not the same as the CurrencyIsoCode of the Cart -
testPerformActionInternalWhenThresholdNotReachedAndConsumptionDisabled
public void testPerformActionInternalWhenThresholdNotReachedAndConsumptionDisabled()When the container's total value has not reached the input discount threshold and Consumption is not enabled -
testPerformActionInternalWhenThresholdReachedAndConsumptionEnabled
public void testPerformActionInternalWhenThresholdReachedAndConsumptionEnabled()When the container's total value has reached the input discount threshold and Consumption is enabled -
testgetEntriesDiscountDistributeStrategyWhenPercentage
public void testgetEntriesDiscountDistributeStrategyWhenPercentage()When the getEntriesDiscountDistributeStrategy method is called by the subset percentage discount class
-