Class DefaultCommerceCartMergingStrategyTest
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategyTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
thrown
public org.junit.rules.ExpectedException thrown
-
-
Constructor Details
-
DefaultCommerceCartMergingStrategyTest
public DefaultCommerceCartMergingStrategyTest()
-
-
Method Details
-
setUp
-
shouldNotMergeForAnonymousUser
- Throws:
CommerceCartMergingException
-
shouldNotMergeForNullUser
- Throws:
CommerceCartMergingException
-
shouldCheckTheSourceCartIsNotNull
- Throws:
CommerceCartMergingException
-
shouldCheckTheTargetCartIsNotNull
- Throws:
CommerceCartMergingException
-
shouldCheckTheModificationListIsNotNull
- Throws:
CommerceCartMergingException
-
shouldToCartSiteEqualWithCurrentSite
- Throws:
CommerceCartMergingException
-
shouldFromCartSiteEqualWithCurrentSite
- Throws:
CommerceCartMergingException
-
shouldCheckThatTheCartsAreDistinct
- Throws:
CommerceCartMergingException
-
shouldSaveTheToCart
- Throws:
CommerceCartMergingException
-
shouldRemoveTheFromCart
- Throws:
CommerceCartMergingException
-
shouldInvokeUpdateQuantityForCartEntryIfThereIsEntryToMerge
public void shouldInvokeUpdateQuantityForCartEntryIfThereIsEntryToMerge() throws CommerceCartMergingException, CommerceCartModificationException -
shouldMergeEntriesIfThereIsEntryToMerge
public void shouldMergeEntriesIfThereIsEntryToMerge() throws CommerceCartMergingException, CommerceCartModificationException -
shouldAddClonedEntryToCartAndResolveEntryNumberConflictsIfThereIsNoEntryToMerge
public void shouldAddClonedEntryToCartAndResolveEntryNumberConflictsIfThereIsNoEntryToMerge() throws CommerceCartMergingException- Throws:
CommerceCartMergingException
-
shouldCopyEntryGroupsWhenToCartEntryGroupsIsEmpty
- Throws:
CommerceCartMergingException
-
shouldCopyEntryGroupsWhenToCartEntryGroupsIsNotEmpty
public void shouldCopyEntryGroupsWhenToCartEntryGroupsIsNotEmpty() throws CommerceCartMergingException- Throws:
CommerceCartMergingException
-
shouldNotCopyEntryGroupsWhenFromCartEntryGroupsIsEmpty
public void shouldNotCopyEntryGroupsWhenFromCartEntryGroupsIsEmpty() throws CommerceCartMergingException- Throws:
CommerceCartMergingException
-
shouldResolveEntryGroupNumberConflicts
- Throws:
CommerceCartMergingException
-
shouldReindexEntriesAlongWithGroups
- Throws:
CommerceCartMergingException
-
testValidationBeforeMergeResultWithFreeGift
public void testValidationBeforeMergeResultWithFreeGift() -
testValidationBeforeMergeResultWithoutFreeGift
public void testValidationBeforeMergeResultWithoutFreeGift() -
testValidationBeforeMergeResultEmptyFromCart
- Throws:
CommerceCartMergingException
-
shouldFilterOutGiveAwayEntriesInFromCart
- Throws:
CommerceCartMergingException
-