Class DefaultCommerceCartServiceTest
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartServiceTest
-
@UnitTest public class DefaultCommerceCartServiceTest extends java.lang.Object
JUnit test suite forDefaultCommerceCartService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultCommerceCartServiceTest.MockProductModel
-
Constructor Summary
Constructors Constructor Description DefaultCommerceCartServiceTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAddToCartWhenCartIsNull
public void testAddToCartWhenCartIsNull() throws CommerceCartModificationException
-
testAddToCartWhenProductIsNull
public void testAddToCartWhenProductIsNull() throws CommerceCartModificationException
-
testAddToCartWhenProductIsBase
public void testAddToCartWhenProductIsBase() throws CommerceCartModificationException
-
testAddToCartWhenQuantityIsZero
public void testAddToCartWhenQuantityIsZero() throws CommerceCartModificationException
-
testAddToCartWhenNoUnitFound
public void testAddToCartWhenNoUnitFound() throws CommerceCartModificationException
-
testAddToCartLowerStock
public void testAddToCartLowerStock() throws CommerceCartModificationException, CalculationException
-
testAddToCart
public void testAddToCart() throws CommerceCartModificationException, CalculationException
-
testAddToCartWithMethodHooksEnabled
public void testAddToCartWithMethodHooksEnabled() throws CommerceCartModificationException, CalculationException
-
testAddToCartWithMethodHooksDisabled
public void testAddToCartWithMethodHooksDisabled() throws CommerceCartModificationException, CalculationException
-
testAddToCartWithMethodHooksWithPropertyDisabled
public void testAddToCartWithMethodHooksWithPropertyDisabled() throws CommerceCartModificationException, CalculationException
-
testAddToCartWhenNoCartWasPassed
public void testAddToCartWhenNoCartWasPassed() throws CommerceCartModificationException, CalculationException
-
testCalculateCartWhenCartIsNull
public void testCalculateCartWhenCartIsNull()
-
testCalculateCart
public void testCalculateCart() throws CalculationException- Throws:
CalculationException
-
testRecalculateCartWhenCartIsNull
public void testRecalculateCartWhenCartIsNull() throws CalculationException- Throws:
CalculationException
-
testRecalculateCart
public void testRecalculateCart() throws CalculationException- Throws:
CalculationException
-
testRemoveAllEntriesWhenCartIsNull
public void testRemoveAllEntriesWhenCartIsNull()
-
testRemoveAllEntries
public void testRemoveAllEntries()
-
testUpdateQuantityWhenCartIsNull
public void testUpdateQuantityWhenCartIsNull() throws CommerceCartModificationException
-
testGetEntryForNumberEmptyEntries
public void testGetEntryForNumberEmptyEntries()
-
testCheckCartLevelWithEntries
public void testCheckCartLevelWithEntries()
-
testCheckStockLevelEmptyWarehouse
public void testCheckStockLevelEmptyWarehouse()
-
testCanModifyCartEntry
public void testCanModifyCartEntry() throws CommerceCartModificationException
-
testCanNotModifyCartEntry
public void testCanNotModifyCartEntry()
-
testGetAvailableStockLevelFromPos
public void testGetAvailableStockLevelFromPos()
-
testCartHasBeenRecentlyUpdated
public void testCartHasBeenRecentlyUpdated() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testCartHasNotBeenRecentlyUpdated
public void testCartHasNotBeenRecentlyUpdated() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
testAddToCartStockFromPos
public void testAddToCartStockFromPos() throws CommerceCartModificationException
-
testAddToCartForPosPartialStockFromPos
public void testAddToCartForPosPartialStockFromPos() throws CommerceCartModificationException
-
testAddToCartForPosNoStockFromPos
public void testAddToCartForPosNoStockFromPos() throws CommerceCartModificationException
-
testAddToCartForPosProductNoLongerOnShelf
public void testAddToCartForPosProductNoLongerOnShelf() throws CommerceCartModificationException
-
testUpdateQuantityForPickupCartEntry
public void testUpdateQuantityForPickupCartEntry() throws CommerceCartModificationException
-
testUpdatePointOfServiceForCartEntry
public void testUpdatePointOfServiceForCartEntry() throws CommerceCartModificationException
-
testUpdateToShippingModeForCartEntry
public void testUpdateToShippingModeForCartEntry() throws CommerceCartModificationException
-
testUpdateToShippingModeForCartEntryLowStock
public void testUpdateToShippingModeForCartEntryLowStock() throws CommerceCartModificationException
-
shouldAddToCartAdjustedQuantityWhenMaxOrderQuantityForProductExceeded
public void shouldAddToCartAdjustedQuantityWhenMaxOrderQuantityForProductExceeded() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldEstimateTaxesWithoutCache
public void shouldEstimateTaxesWithoutCache()
-
shouldEstimateTaxesWithCache
public void shouldEstimateTaxesWithCache()
-
shouldEstimateTaxesWithInvalidCache
public void shouldEstimateTaxesWithInvalidCache()
-
shouldRestoreCartForDelivery
public void shouldRestoreCartForDelivery() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
shouldRestoreCartForWeb
public void shouldRestoreCartForWeb() throws CommerceCartRestorationException- Throws:
CommerceCartRestorationException
-
shouldSplitCartWith1Entry
public void shouldSplitCartWith1Entry() throws CommerceCartModificationException
-
testConfigureCartEntry
public void testConfigureCartEntry() throws CommerceCartModificationException
-
testUpdateCartMetadataValidateNullParameter
public void testUpdateCartMetadataValidateNullParameter()
-
testUpdateCartMetadataValidateNullCart
public void testUpdateCartMetadataValidateNullCart()
-
testUpdateCartMetadata
public void testUpdateCartMetadata()
-
-