@IntegrationTest public class BundleOrderEntryRemoveableCheckerNestedIntegrationTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
protected BundleCommerceCartService |
bundleCommerceCartService |
protected CartModel |
cart |
static String |
OPTIONAL_COMPONENT |
static String |
PRODUCT01 |
protected ProductService |
productService |
static String |
REGULAR_COMPONENT |
protected UnitModel |
unitModel |
protected UserService |
userService |
defaultLanguage, jaloSession| Constructor and Description |
|---|
BundleOrderEntryRemoveableCheckerNestedIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToCart(String productCode) |
protected void |
addToCart(String productCode,
String componentId,
int bundleNo) |
protected BundleTemplateModel |
getBundleTemplate(String templateId) |
protected CatalogVersionModel |
getCatalog() |
protected ProductModel |
getProduct(String code) |
void |
setUp() |
void |
shouldDeleteItemsWhichSatisfyMinCondition() |
void |
shouldNotDeleteItemsWhichDontSatisfyMinCondition() |
void |
shouldRemoveNonBundleEntry() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String PRODUCT01
public static final String REGULAR_COMPONENT
public static final String OPTIONAL_COMPONENT
protected CartModel cart
protected UnitModel unitModel
protected UserService userService
protected BundleCommerceCartService bundleCommerceCartService
protected ProductService productService
public BundleOrderEntryRemoveableCheckerNestedIntegrationTest()
public void shouldNotDeleteItemsWhichDontSatisfyMinCondition()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void shouldDeleteItemsWhichSatisfyMinCondition()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionpublic void shouldRemoveNonBundleEntry()
throws CommerceCartModificationException,
CalculationException
CommerceCartModificationExceptionCalculationExceptionprotected void 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.