@UnitTest public class DefaultRuleEngineCalculationServiceCalculationMethodsTest extends java.lang.Object
| Constructor and Description |
|---|
DefaultRuleEngineCalculationServiceCalculationMethodsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
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
method
|
void |
testRecalculateTotalsWithIllegalCartLineItem() |
void |
testRecalculateTotalsWithNoCartLineItems() |
public DefaultRuleEngineCalculationServiceCalculationMethodsTest()
public void setUp()
public void testCalculateTotals()
throws java.lang.Exception
java.lang.Exceptionpublic void testRecalculateTotalsWithNoCartLineItems()
throws java.lang.Exception
java.lang.Exceptionpublic void testRecalculateTotalsWithIllegalCartLineItem()
throws java.lang.Exception
java.lang.Exceptionpublic void testCalculateSubTotalsWhenExcludedProductsIsEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testCalculateSubTotalsValidationWhenCartIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testCalculateSubTotalsWithNonMatchingExcludedProductsEntryProductIsNull()
throws java.lang.Exception
java.lang.Exceptionpublic void testCalculateSubTotalsWithNonMatchingExcludedProducts()
throws java.lang.Exception
java.lang.Exceptionpublic void testCalculateSubTotalsWithMatchingExcludedProducts()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.