Class DefaultCommerceUpdateCartEntryStrategyTest
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceUpdateCartEntryStrategyTest
-
@UnitTest public class DefaultCommerceUpdateCartEntryStrategyTest extends java.lang.Object
JUnit test suite forDefaultCommerceUpdateCartEntryStrategy
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionthrown
-
Constructor Summary
Constructors Constructor Description DefaultCommerceUpdateCartEntryStrategyTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldFailUpdatePosIfCartNotProvided()voidshouldFailUpdatePosIfEntryNotFound()voidshouldFailUpdatePosIfEntryNotUpdatable()voidshouldFailUpdatePosIfPosNotProvided()voidupdatePosShouldCheckStock()voidupdatePosShouldMergeEntries()voidupdatePosShouldSucceedIfNoEntry()voidupdateShippingModeShouldMergeEntries()
-
-
-
Method Detail
-
setUp
public void setUp()
-
shouldFailUpdatePosIfCartNotProvided
public void shouldFailUpdatePosIfCartNotProvided() throws CommerceCartModificationException
-
shouldFailUpdatePosIfPosNotProvided
public void shouldFailUpdatePosIfPosNotProvided() throws CommerceCartModificationException
-
shouldFailUpdatePosIfEntryNotFound
public void shouldFailUpdatePosIfEntryNotFound() throws CommerceCartModificationException
-
shouldFailUpdatePosIfEntryNotUpdatable
public void shouldFailUpdatePosIfEntryNotUpdatable() throws CommerceCartModificationException
-
updatePosShouldMergeEntries
public void updatePosShouldMergeEntries() throws CommerceCartModificationException
-
updatePosShouldSucceedIfNoEntry
public void updatePosShouldSucceedIfNoEntry() throws CommerceCartModificationException
-
updatePosShouldCheckStock
public void updatePosShouldCheckStock() throws CommerceCartModificationException
-
updateShippingModeShouldMergeEntries
public void updateShippingModeShouldMergeEntries() throws CommerceCartModificationException
-
-