Class DefaultSubscriptionCommerceCartServiceTest
- java.lang.Object
-
- de.hybris.platform.subscriptionservices.subscription.impl.DefaultSubscriptionCommerceCartServiceTest
-
@UnitTest public class DefaultSubscriptionCommerceCartServiceTest extends java.lang.Object
JUnit test suite forDefaultSubscriptionCommerceCartService
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPEND_AS_LASTorg.junit.rules.ExpectedExceptionthrown
-
Constructor Summary
Constructors Constructor Description DefaultSubscriptionCommerceCartServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestAddToCart()voidtestAddToCartProductNoStock()voidtestAddToCartSubscriptionProductNoStock()voidtestCheckMasterCartIsNoMasterCart()voidtestCheckMasterCartMasterHasWrongBillingFrequency()voidtestCreatingChildCart()voidtestCreatingFirstChildCart()voidtestRecalculateCartEntry()voidtestRecalculateCartEntryWhenCartIsNotMasterCart()voidtestRecalculateCartEntryWhenCartIsNull()voidtestRemoveAllEntriesChildCart()voidtestRemoveAllEntriesMasterCart()voidtestRemoveAllEntriesWhenCartIsNull()voidtestUpdateQuantityForCartEntrySubscriptionProduct()
-
-
-
Field Detail
-
thrown
public org.junit.rules.ExpectedException thrown
-
APPEND_AS_LAST
public static final int APPEND_AS_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAddToCart
public void testAddToCart() throws CommerceCartModificationException, CalculationException
-
testAddToCartProductNoStock
public void testAddToCartProductNoStock() throws CommerceCartModificationException, CalculationException
-
testAddToCartSubscriptionProductNoStock
public void testAddToCartSubscriptionProductNoStock() throws CommerceCartModificationException, CalculationException
-
testRemoveAllEntriesWhenCartIsNull
public void testRemoveAllEntriesWhenCartIsNull()
-
testRemoveAllEntriesMasterCart
public void testRemoveAllEntriesMasterCart() throws CommerceCartModificationException, CalculationException
-
testRemoveAllEntriesChildCart
public void testRemoveAllEntriesChildCart() throws CommerceCartModificationException, CalculationException
-
testUpdateQuantityForCartEntrySubscriptionProduct
public void testUpdateQuantityForCartEntrySubscriptionProduct() throws CommerceCartModificationException, CalculationException
-
testRecalculateCartEntryWhenCartIsNull
public void testRecalculateCartEntryWhenCartIsNull() throws CalculationException- Throws:
CalculationException
-
testRecalculateCartEntry
public void testRecalculateCartEntry() throws CalculationException- Throws:
CalculationException
-
testRecalculateCartEntryWhenCartIsNotMasterCart
public void testRecalculateCartEntryWhenCartIsNotMasterCart() throws CalculationException- Throws:
CalculationException
-
testCheckMasterCartIsNoMasterCart
public void testCheckMasterCartIsNoMasterCart() throws CommerceCartModificationException
-
testCheckMasterCartMasterHasWrongBillingFrequency
public void testCheckMasterCartMasterHasWrongBillingFrequency() throws CommerceCartModificationException
-
testCreatingFirstChildCart
public void testCreatingFirstChildCart()
-
testCreatingChildCart
public void testCreatingChildCart()
-
-