@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 java.lang.String |
LEAF_BUNDLE_TEMPLATE_1 |
protected static java.lang.String |
LEAF_BUNDLE_TEMPLATE_2 |
protected static java.lang.String |
OPTIONAL_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 static java.lang.String |
PRODUCT06 |
protected ProductService |
productService |
protected static java.lang.String |
REGULAR_COMPONENT |
ExpectedException |
thrown |
protected UnitModel |
unitModel |
protected UserService |
userService |
importServicejaloSession| Constructor and Description |
|---|
DefaultBundleRuleServiceNestedIntegrationTest() |
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 PRODUCT01
protected static final java.lang.String PRODUCT02
protected static final java.lang.String PRODUCT05
protected static final java.lang.String PRODUCT06
protected static final java.lang.String PREMIUM01
protected static final java.lang.String PREMIUM02
protected static final java.lang.String REGULAR_COMPONENT
protected static final java.lang.String OPTIONAL_COMPONENT
protected static final java.lang.String LEAF_BUNDLE_TEMPLATE_1
protected static final java.lang.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 setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldDisableInOneComponent()
throws CommerceCartModificationException
public void shouldDisableInDifferentComponents()
throws CommerceCartModificationException
public void gettingDisablingRulesShouldHandleNullOrder()
public void gettingDisablingRuleShouldHandleNullProduct()
public void gettingDisablingRuleShouldHandleNullComponent()
public void gettingDisablingRuleShouldHandleInvalidBundleId()
throws CommerceCartModificationException
public 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
public void shouldNotReturnChangePriceRuleByCartWhenNoSuchTargetProductInChangePriceRule()
throws CommerceCartModificationException
public void shouldNotReturnChangePriceRuleByCartWhenNoSuchCurrencyInChangePriceRule()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleByCartForProductsInOneComponent()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleByCartForProductsInDifferentComponents()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleByCartWhenRuleTypeIsAll()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleWithLowestPriceByCart()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleWithLowestPriceByOrderEntry()
throws CommerceCartModificationException
public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct()
throws CommerceCartModificationException
public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency()
throws CommerceCartModificationException
public void shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll()
throws CommerceCartModificationException
public void shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct()
throws CommerceCartModificationException
protected BundleRuleService getBundleRuleService()
public void setBundleRuleService(BundleRuleService bundleRuleService)
protected void addToCart(java.lang.String productCode,
java.lang.String componentId,
int bundleNo)
throws CommerceCartModificationException
protected void addToCart(java.lang.String productCode)
throws CommerceCartModificationException
protected ProductModel getProduct(java.lang.String code)
protected BundleTemplateModel getBundleTemplate(java.lang.String templateId)
protected CatalogVersionModel getCatalog()
Copyright © 2018 SAP SE. All Rights Reserved.