@UnitTest public class DefaultBundleCommerceCartServiceTest extends java.lang.Object
DefaultBundleCommerceCartService| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
| Constructor and Description |
|---|
DefaultBundleCommerceCartServiceTest() |
public DefaultBundleCommerceCartServiceTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddToCartNoBundleParamsOldMethod()
throws CommerceCartModificationException,
CalculationException
public void testAddToCartNoBundleParamsNewMethod()
throws CommerceCartModificationException,
CalculationException
public void testAddToCartNewBundle()
throws CommerceCartModificationException,
CalculationException
public void testAddToCartNoBundleTemplate()
throws CommerceCartModificationException
public void testAddToCartNoEntryForBundleNumber()
throws CommerceCartModificationException
public void testAddToCartWrongBundleNoForTemplate()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoBundleNumber()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoCart()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoProduct1()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoProduct2()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoTemplate1()
throws CommerceCartModificationException
public void testAddToCart2ProductsWhenNoTemplate2()
throws CommerceCartModificationException
public void testRemoveAllEntriesWhenCartIsNull()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesBundle()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesFromUnknownBundle()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntryWhenCartIsNull()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntryWhenNoMasterCartIsGiven()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntryWrongQuantity()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntryStandalone()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntryWhenAutoPick()
throws CommerceCartModificationException
public void testUpdateQuantityForCartEntryBundle()
throws CommerceCartModificationException,
CalculationException
public void testSetCartEntriesInSameBundleToNotCalculatedMasterCartEntry()
public void testSetCartEntriesInSameBundleToNotCalculatedChildCartEntry()
public void testCalculateBundleCartNoMasterCart()
public void testCheckSelectionCriteriaNotExceededWhenNoCart()
throws CommerceCartModificationException
public void testCheckSelectionCriteriaNotExceededWhenNoTemplate()
throws CommerceCartModificationException
public void testCheckSelectionCriteriaNotExceededWhenExactlyNExceeded()
throws CommerceCartModificationException
public void testCheckSelectionCriteriaNotExceededWhenNToMExceeded()
throws CommerceCartModificationException
public void testCheckIsEntryRemovableWhenNoCartEntry()
throws CommerceCartModificationException
public void testCheckSelectionCriteriaNotUnderThresholdWhenCriteriaNotMet()
throws CommerceCartModificationException
public void testCheckIsComponentEditableWhenCartIsNull()
throws CommerceCartModificationException,
CalculationException
public void testCheckIsComponentDependencyMetAfterRemoval()
throws CommerceCartModificationException
public void testIsNotValidComponent()
throws CommerceCartModificationException
public void testIsValidComponent()
throws CommerceCartModificationException
public void testCheckIsComponentSelectionCriteriaMetWhenCartIsNull()
throws CommerceCartModificationException,
CalculationException
public void testCheckIsProductAlreadyInComponent()
throws CommerceCartModificationException
public void testGetFirstInvalidComponentInCartWhenNoCart()
public void testGetFirstInvalidComponentInCart()
Copyright © 2018 SAP SE. All Rights Reserved.