@IntegrationTest public class DefaultBundleCommerceCartServiceNestedIntegrationTest extends ServicelayerTest
DefaultBundleCommerceCartService. This test class inherits from
DefaultSubscriptionCommerceCartService in order to run the super class' test cases against the new
DefaultBundleCommerceCartService to guarantee compatibility| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOPICK_COMPONENT |
protected BundleCommerceCartService |
bundleCommerceCartService |
protected BundleTemplateService |
bundleTemplateService |
protected CartModel |
cart |
static String |
PRODUCT_AUTO |
protected ProductService |
productService |
static String |
SECOND_COMPONENT1 |
ExpectedException |
thrown |
protected UnitModel |
unitModel |
protected UserService |
userService |
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultBundleCommerceCartServiceNestedIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String PRODUCT_AUTO
public static final String SECOND_COMPONENT1
public static final String AUTOPICK_COMPONENT
public ExpectedException thrown
protected CartModel cart
protected UnitModel unitModel
protected UserService userService
protected BundleTemplateService bundleTemplateService
protected BundleCommerceCartService bundleCommerceCartService
protected ProductService productService
public DefaultBundleCommerceCartServiceNestedIntegrationTest()
public void shouldNotDeleteItemsWhichDontSatisfyMinCondition()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void populateBundleBoxEntryForNotRemovableProducts()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void shouldNotUpdateExistingBundles()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void shouldUpdateRegularProduct()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void testAddToCart2BundleProducts()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testAddToCart2BundleProductsNoStock()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testAddToCart2ProductsAutoPick()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReplaceBundleProductInCart()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldRejectReplacementInUnknownBundle()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldRejectReplacementInNegativeBundle()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldRejectReplacementWithNullComponent()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldRejectReplacementWithNullProduct()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void replacingWithAnotherComponentShouldSimplyAdd()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void replacementShouldAddToNewBundle()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testGetTemplatesForMasterOrderAndBundleNo()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testFirstInvalidComponentInCartShouldBeRegularComponent()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testFirstInvalidComponentInCartShouldBePremiumComponent()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void testGetFirstInvalidComponentInCartShouldBeBull()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldDenyRemovalOfAutopickEntry()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldRemoveAutopickAlongWithOwner()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void autopickProductCanNotBeAddedExplicitly()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void autopickProductIsAddedAutomatically()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void autopickProductShouldBeAddedToEveryBundle()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void autopickProductShouldBeAddedOnlyOnce()
throws CommerceCartModificationException
CommerceCartModificationExceptionprotected List<CommerceCartModification> addToCart(String productCode, String componentId, int bundleNo) throws CommerceCartModificationException
CommerceCartModificationExceptionprotected void addToCart(String productCode) throws CommerceCartModificationException
CommerceCartModificationExceptionprotected ProductModel getProduct(String code)
protected BundleTemplateModel getBundleTemplate(String templateId)
protected CatalogVersionModel getCatalog()
Copyright © 2017 SAP SE. All Rights Reserved.