@UnitTest public class DefaultSubscriptionCommerceCartServiceTest extends java.lang.Object
DefaultSubscriptionCommerceCartService| Modifier and Type | Field and Description |
|---|---|
static int |
APPEND_AS_LAST |
ExpectedException |
thrown |
| Constructor and Description |
|---|
DefaultSubscriptionCommerceCartServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testAddToCart() |
void |
testAddToCartProductNoStock() |
void |
testAddToCartSubscriptionProductNoStock() |
void |
testCheckMasterCartIsNoMasterCart() |
void |
testCheckMasterCartMasterHasWrongBillingFrequency() |
void |
testCreatingChildCart() |
void |
testCreatingFirstChildCart() |
void |
testRecalculateCartEntry() |
void |
testRecalculateCartEntryWhenCartIsNotMasterCart() |
void |
testRecalculateCartEntryWhenCartIsNull() |
void |
testRemoveAllEntriesChildCart() |
void |
testRemoveAllEntriesMasterCart() |
void |
testRemoveAllEntriesWhenCartIsNull() |
void |
testUpdateQuantityForCartEntrySubscriptionProduct() |
public ExpectedException thrown
public static final int APPEND_AS_LAST
public DefaultSubscriptionCommerceCartServiceTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddToCart()
throws CommerceCartModificationException,
CalculationException
public void testAddToCartProductNoStock()
throws CommerceCartModificationException,
CalculationException
public void testAddToCartSubscriptionProductNoStock()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesWhenCartIsNull()
public void testRemoveAllEntriesMasterCart()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesChildCart()
throws CommerceCartModificationException,
CalculationException
public void testUpdateQuantityForCartEntrySubscriptionProduct()
throws CommerceCartModificationException,
CalculationException
public void testRecalculateCartEntryWhenCartIsNull()
throws CalculationException
CalculationExceptionpublic void testRecalculateCartEntry()
throws CalculationException
CalculationExceptionpublic void testRecalculateCartEntryWhenCartIsNotMasterCart()
throws CalculationException
CalculationExceptionpublic void testCheckMasterCartIsNoMasterCart()
throws CommerceCartModificationException
public void testCheckMasterCartMasterHasWrongBillingFrequency()
throws CommerceCartModificationException
public void testCreatingFirstChildCart()
public void testCreatingChildCart()
Copyright © 2018 SAP SE. All Rights Reserved.