@UnitTest public class DefaultCommerceCartMergingStrategyTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
thrown |
| Constructor and Description |
|---|
DefaultCommerceCartMergingStrategyTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldAddClonedEntryToCartAndResolveEntryNumberConflictsIfThereIsNoEntryToMerge() |
void |
shouldCheckThatTheCartsAreDistinct() |
void |
shouldCheckTheModificationListIsNotNull() |
void |
shouldCheckTheSourceCartIsNotNull() |
void |
shouldCheckTheTargetCartIsNotNull() |
void |
shouldCopyEntryGroupsWhenToCartEntryGroupsIsEmpty() |
void |
shouldCopyEntryGroupsWhenToCartEntryGroupsIsNotEmpty() |
void |
shouldFromCartSiteEqualWithCurrentSite() |
void |
shouldInvokeUpdateQuantityForCartEntryIfThereIsEntryToMerge() |
void |
shouldMergeEntriesIfThereIsEntryToMerge() |
void |
shouldNotCopyEntryGroupsWhenFromCartEntryGroupsIsEmpty() |
void |
shouldNotMergeForAnonymousUser() |
void |
shouldNotMergeForNullUser() |
void |
shouldReindexEntriesAlongWithGroups() |
void |
shouldRemoveTheFromCart() |
void |
shouldResolveEntryGroupNumberConflicts() |
void |
shouldSaveTheToCart() |
void |
shouldToCartSiteEqualWithCurrentSite() |
public DefaultCommerceCartMergingStrategyTest()
public void setUp()
throws CommerceCartModificationException
public void shouldNotMergeForAnonymousUser()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldNotMergeForNullUser()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCheckTheSourceCartIsNotNull()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCheckTheTargetCartIsNotNull()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCheckTheModificationListIsNotNull()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldToCartSiteEqualWithCurrentSite()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldFromCartSiteEqualWithCurrentSite()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCheckThatTheCartsAreDistinct()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldSaveTheToCart()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldRemoveTheFromCart()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldInvokeUpdateQuantityForCartEntryIfThereIsEntryToMerge()
throws CommerceCartMergingException,
CommerceCartModificationException
public void shouldMergeEntriesIfThereIsEntryToMerge()
throws CommerceCartMergingException,
CommerceCartModificationException
public void shouldAddClonedEntryToCartAndResolveEntryNumberConflictsIfThereIsNoEntryToMerge()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCopyEntryGroupsWhenToCartEntryGroupsIsEmpty()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldCopyEntryGroupsWhenToCartEntryGroupsIsNotEmpty()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldNotCopyEntryGroupsWhenFromCartEntryGroupsIsEmpty()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldResolveEntryGroupNumberConflicts()
throws CommerceCartMergingException
CommerceCartMergingExceptionpublic void shouldReindexEntriesAlongWithGroups()
throws CommerceCartMergingException
CommerceCartMergingExceptionCopyright © 2018 SAP SE. All Rights Reserved.