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