Class DefaultRuleEngineCalculationServiceCalculationMethodsTest
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.calculation.impl.DefaultRuleEngineCalculationServiceCalculationMethodsTest
-
@UnitTest public class DefaultRuleEngineCalculationServiceCalculationMethodsTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleEngineCalculationServiceCalculationMethodsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testCalculateSubTotalsValidationWhenCartIsNull()
void
testCalculateSubTotalsWhenExcludedProductsIsEmpty()
void
testCalculateSubTotalsWithMatchingExcludedProducts()
void
testCalculateSubTotalsWithNonMatchingExcludedProducts()
Test the method DefaultRuleEngineCalculationService#calculateSubTotals.void
testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull()
void
testCalculateTotals()
Test that the calculate totals method uses the converter to create the order, and calls the recalculateTotals methodvoid
testRecalculateTotals()
void
testRecalculateTotalsWithIllegalCartLineItem()
void
testRecalculateTotalsWithNoCartLineItems()
-
-
-
Method Detail
-
testCalculateTotals
public void testCalculateTotals()
Test that the calculate totals method uses the converter to create the order, and calls the recalculateTotals method- Throws:
java.lang.Exception
-
testRecalculateTotalsWithNoCartLineItems
public void testRecalculateTotalsWithNoCartLineItems()
-
testRecalculateTotals
public void testRecalculateTotals()
-
testRecalculateTotalsWithIllegalCartLineItem
public void testRecalculateTotalsWithIllegalCartLineItem()
-
testCalculateSubTotalsWhenExcludedProductsIsEmpty
public void testCalculateSubTotalsWhenExcludedProductsIsEmpty()
-
testCalculateSubTotalsValidationWhenCartIsNull
public void testCalculateSubTotalsValidationWhenCartIsNull()
-
testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull
public void testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull()
-
testCalculateSubTotalsWithNonMatchingExcludedProducts
public void testCalculateSubTotalsWithNonMatchingExcludedProducts()
Test the method DefaultRuleEngineCalculationService#calculateSubTotals. Note that this method will not test recalculate totals: it will only verify that the calculateSubTotals method does invoke recalculate totals!- Throws:
java.lang.Exception
-
testCalculateSubTotalsWithMatchingExcludedProducts
public void testCalculateSubTotalsWithMatchingExcludedProducts()
-
-