@IntegrationTest public class DefaultBundleRuleServiceNestedIntegrationTest extends ServicelayerTest
FindBundlePricingWithCurrentPriceFactoryStrategy and
DefaultBundleRuleService| Modifier and Type | Field and Description |
|---|---|
protected BundleCommerceCartService |
bundleCommerceCartService |
protected CartModel |
cart |
protected CurrencyModel |
currency |
protected static String |
LEAF_BUNDLE_TEMPLATE_1 |
protected static String |
LEAF_BUNDLE_TEMPLATE_2 |
protected static String |
OPTIONAL_COMPONENT |
protected static String |
PREMIUM01 |
protected static String |
PREMIUM02 |
protected static String |
PRODUCT01 |
protected static String |
PRODUCT02 |
protected static String |
PRODUCT05 |
protected static String |
PRODUCT06 |
protected ProductService |
productService |
protected static String |
REGULAR_COMPONENT |
ExpectedException |
thrown |
protected UnitModel |
unitModel |
protected UserService |
userService |
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultBundleRuleServiceNestedIntegrationTest() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedprotected static final String PRODUCT01
protected static final String PRODUCT02
protected static final String PRODUCT05
protected static final String PRODUCT06
protected static final String PREMIUM01
protected static final String PREMIUM02
protected static final String REGULAR_COMPONENT
protected static final String OPTIONAL_COMPONENT
protected static final String LEAF_BUNDLE_TEMPLATE_1
protected static final String LEAF_BUNDLE_TEMPLATE_2
public ExpectedException thrown
protected CartModel cart
protected UnitModel unitModel
protected CurrencyModel currency
protected UserService userService
protected BundleCommerceCartService bundleCommerceCartService
protected ProductService productService
public DefaultBundleRuleServiceNestedIntegrationTest()
public void shouldDisableInOneComponent()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldDisableInDifferentComponents()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void gettingDisablingRulesShouldHandleNullOrder()
public void gettingDisablingRuleShouldHandleNullProduct()
public void gettingDisablingRuleShouldHandleNullComponent()
public void gettingDisablingRuleShouldHandleInvalidBundleId()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldGetDisablingRuleForBundleProduct()
public void shouldNotReturnDisablingRulesForOneProduct()
public void shouldNotReturnDisablingRulesForForeignProduct()
public void shouldRespectComponentWhileGettingDisablingRules()
public void gettingDisablingRulesShouldHandleNullBundleId()
public void gettingDisablingRulesShouldHandleFirstProductOfNull()
public void gettingDisablingRulesShouldHandleSecondProductOfNull()
public void shouldNotReturnChangePriceRuleWhenNoSuchConditionalProductsInChangePriceRule()
public void shouldNotReturnChangePriceRuleWhenNoSuchTargetProductsInChangePriceBundleRule()
public void shouldNotReturnChangePriceRuleWhenNoSuchCurrencyInChangePriceRule()
public void shouldNotReturnChangePriceRuleForDifferentCurrencies()
public void shouldReturnChangePriceRuleForProductsInOneComponent()
public void shouldReturnChangePriceRuleForProductsInDifferentComponents()
public void shouldNotReturnChangePriceRuleWhenRuleTypeIsAll()
public void shouldReturnChangePriceRuleWithLowestPrice()
public void shouldNotReturnChangePriceRuleByCartWhenNoSuchConditionalProductInChangePriceRule()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldNotReturnChangePriceRuleByCartWhenNoSuchTargetProductInChangePriceRule()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldNotReturnChangePriceRuleByCartWhenNoSuchCurrencyInChangePriceRule()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleByCartForProductsInOneComponent()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleByCartForProductsInDifferentComponents()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleByCartWhenRuleTypeIsAll()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleWithLowestPriceByCart()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleWithLowestPriceByOrderEntry()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll()
throws CommerceCartModificationException
CommerceCartModificationExceptionpublic void shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct()
throws CommerceCartModificationException
CommerceCartModificationExceptionprotected BundleRuleService getBundleRuleService()
public void setBundleRuleService(BundleRuleService bundleRuleService)
protected 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.