@IntegrationTest public class DefaultBundleCartServiceNestedIntegrationTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected BundleCommerceCartService |
bundleCommerceCartService |
protected CartModel |
cart |
protected static java.lang.String |
PREMIUM_COMPONENT |
protected static java.lang.String |
PREMIUM01 |
protected static java.lang.String |
PREMIUM02 |
protected static java.lang.String |
PRODUCT01 |
protected static java.lang.String |
PRODUCT02 |
protected static java.lang.String |
PRODUCT05 |
protected ProductService |
productService |
protected static java.lang.String |
REGULAR_COMPONENT |
protected UnitModel |
unitModel |
protected UserService |
userService |
importServicejaloSession| Constructor and Description |
|---|
DefaultBundleCartServiceNestedIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected static final java.lang.String REGULAR_COMPONENT
protected static final java.lang.String PREMIUM_COMPONENT
protected static final java.lang.String PRODUCT01
protected static final java.lang.String PREMIUM01
protected static final java.lang.String PRODUCT02
protected static final java.lang.String PRODUCT05
protected static final java.lang.String PREMIUM02
protected BundleCommerceCartService bundleCommerceCartService
protected UserService userService
protected ProductService productService
protected CartModel cart
protected UnitModel unitModel
public DefaultBundleCartServiceNestedIntegrationTest()
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldGetEntryByComponent()
throws CommerceCartModificationException
public void shouldSelectByComponent()
throws CommerceCartModificationException
public void shouldSelectByBundle()
throws CommerceCartModificationException
public void shouldHandleComponentNotFound()
throws CommerceCartModificationException
public void shouldHandleBundleNotFound()
throws CommerceCartModificationException
public void testAdd2Cart2Products()
throws CommerceCartModificationException,
CalculationException
public void shouldGetCartEntryByProduct()
throws CommerceCartModificationException
public void gettingEntriesByProductShouldWorkWithEmptyCart()
public void shouldFilterCartEntriesByProduct()
throws CommerceCartModificationException
public void shouldFilterCartEntriesByBundleNo()
throws CommerceCartModificationException
public void getByProductShouldValidateCart()
throws CommerceCartModificationException
public void getByProductShouldValidateProduct()
throws CommerceCartModificationException
public void getByProductShouldValidateBundleNo()
throws CommerceCartModificationException
protected void addToCart(java.lang.String productCode,
java.lang.String componentId,
int bundleNo)
throws CommerceCartModificationException
protected BundleTemplateModel getBundleTemplate(java.lang.String templateId)
protected ProductModel getProduct(java.lang.String code)
protected CatalogVersionModel getCatalog()
public void testRemoveAllEntriesBundle()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesBundleBundleDoesNotExist()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesBundleNullCart()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesBundleBundleNoIsNegative()
throws CommerceCartModificationException,
CalculationException
public void testRemoveAllEntriesBundleBundleNoIsZero()
throws CommerceCartModificationException,
CalculationException
Copyright © 2018 SAP SE. All Rights Reserved.