Class DefaultCommerceCartServiceTest
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartServiceTest
JUnit test suite for
DefaultCommerceCartService-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
DefaultCommerceCartServiceTest
public DefaultCommerceCartServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testAddToCartWhenCartIsNull
-
testAddToCartWhenProductIsNull
-
testAddToCartWhenFallbackValidatorRejects
-
testAddToCartWhenFallbackValidatorAccepts
-
testAddToCartWhenQuantityIsZero
-
testAddToCartWhenNoUnitFound
-
testAddToCartLowerStock
public void testAddToCartLowerStock() throws CommerceCartModificationException, CalculationException -
testAddToCart
-
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
- Throws:
CalculationException
-
testRecalculateCartWhenCartIsNull
- Throws:
CalculationException
-
testRecalculateCart
- Throws:
CalculationException
-
testRemoveAllEntriesWhenCartIsNull
public void testRemoveAllEntriesWhenCartIsNull() -
testRemoveAllEntries
public void testRemoveAllEntries() -
testUpdateQuantityWhenCartIsNull
-
testGetEntryForNumberEmptyEntries
public void testGetEntryForNumberEmptyEntries() -
testCheckCartLevelWithEntries
public void testCheckCartLevelWithEntries() -
testCheckStockLevelEmptyWarehouse
public void testCheckStockLevelEmptyWarehouse() -
testCanModifyCartEntry
-
testCanNotModifyCartEntry
public void testCanNotModifyCartEntry() -
testGetAvailableStockLevelFromPos
public void testGetAvailableStockLevelFromPos() -
testCartHasBeenRecentlyUpdated
- Throws:
CommerceCartRestorationException
-
testCartHasNotBeenRecentlyUpdated
- Throws:
CommerceCartRestorationException
-
testAddToCartStockFromPos
-
testAddToCartForPosPartialStockFromPos
-
testAddToCartForPosNoStockFromPos
-
testAddToCartForPosProductNoLongerOnShelf
-
testUpdateQuantityForPickupCartEntry
-
testUpdatePointOfServiceForCartEntry
-
testUpdateToShippingModeForCartEntry
-
testUpdateToShippingModeForCartEntryLowStock
-
shouldAddToCartAdjustedQuantityWhenMaxOrderQuantityForProductExceeded
public void shouldAddToCartAdjustedQuantityWhenMaxOrderQuantityForProductExceeded() throws Exception- Throws:
Exception
-
shouldEstimateTaxesWithoutCache
public void shouldEstimateTaxesWithoutCache() -
shouldEstimateTaxesWithCache
public void shouldEstimateTaxesWithCache() -
shouldEstimateTaxesWithInvalidCache
public void shouldEstimateTaxesWithInvalidCache() -
shouldRestoreCartForDelivery
- Throws:
CommerceCartRestorationException
-
shouldRestoreCartForWeb
- Throws:
CommerceCartRestorationException
-
shouldSplitCartWith1Entry
-
testConfigureCartEntry
-
testUpdateCartMetadataValidateNullParameter
public void testUpdateCartMetadataValidateNullParameter() -
testUpdateCartMetadataValidateNullCart
public void testUpdateCartMetadataValidateNullCart() -
testUpdateCartMetadata
public void testUpdateCartMetadata()
-