Class DefaultBundleRuleServiceNestedIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.configurablebundleservices.bundle.impl.DefaultBundleRuleServiceNestedIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class DefaultBundleRuleServiceNestedIntegrationTest extends ServicelayerTest
Integration test suite forFindBundlePricingWithCurrentPriceFactoryStrategyandDefaultBundleRuleService
-
-
Field Summary
Fields Modifier and Type Field Description protected CartModelcartprotected CommerceCartServicecommerceCartServiceprotected CurrencyModelcurrencyprotected static java.lang.StringLEAF_BUNDLE_TEMPLATE_1protected static java.lang.StringLEAF_BUNDLE_TEMPLATE_2protected static java.lang.StringOPTIONAL_COMPONENTprotected static java.lang.StringPREMIUM01protected static java.lang.StringPREMIUM02protected static java.lang.StringPRODUCT01protected static java.lang.StringPRODUCT02protected static java.lang.StringPRODUCT05protected static java.lang.StringPRODUCT06protected ProductServiceproductServiceprotected static java.lang.StringREGULAR_COMPONENTorg.junit.rules.ExpectedExceptionthrownprotected UnitModelunitModelprotected UserServiceuserService-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultBundleRuleServiceNestedIntegrationTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
PRODUCT01
protected static final java.lang.String PRODUCT01
- See Also:
- Constant Field Values
-
PRODUCT02
protected static final java.lang.String PRODUCT02
- See Also:
- Constant Field Values
-
PRODUCT05
protected static final java.lang.String PRODUCT05
- See Also:
- Constant Field Values
-
PRODUCT06
protected static final java.lang.String PRODUCT06
- See Also:
- Constant Field Values
-
PREMIUM01
protected static final java.lang.String PREMIUM01
- See Also:
- Constant Field Values
-
PREMIUM02
protected static final java.lang.String PREMIUM02
- See Also:
- Constant Field Values
-
REGULAR_COMPONENT
protected static final java.lang.String REGULAR_COMPONENT
- See Also:
- Constant Field Values
-
OPTIONAL_COMPONENT
protected static final java.lang.String OPTIONAL_COMPONENT
- See Also:
- Constant Field Values
-
LEAF_BUNDLE_TEMPLATE_1
protected static final java.lang.String LEAF_BUNDLE_TEMPLATE_1
- See Also:
- Constant Field Values
-
LEAF_BUNDLE_TEMPLATE_2
protected static final java.lang.String LEAF_BUNDLE_TEMPLATE_2
- See Also:
- Constant Field Values
-
thrown
public org.junit.rules.ExpectedException thrown
-
cart
protected CartModel cart
-
unitModel
protected UnitModel unitModel
-
currency
protected CurrencyModel currency
-
userService
protected UserService userService
-
commerceCartService
protected CommerceCartService commerceCartService
-
productService
protected ProductService productService
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldDisableInOneComponent
public void shouldDisableInOneComponent() throws CommerceCartModificationException
-
gettingDisablingRulesShouldHandleNullOrder
public void gettingDisablingRulesShouldHandleNullOrder()
-
gettingDisablingRuleShouldHandleNullGroup
public void gettingDisablingRuleShouldHandleNullGroup()
-
shouldDisableInDifferentComponents
public void shouldDisableInDifferentComponents() throws CommerceCartModificationException
-
shouldGetDisablingRuleForBundleProduct
public void shouldGetDisablingRuleForBundleProduct()
-
shouldNotReturnDisablingRulesForOneProduct
public void shouldNotReturnDisablingRulesForOneProduct()
-
shouldNotReturnDisablingRulesForForeignProduct
public void shouldNotReturnDisablingRulesForForeignProduct()
-
shouldRespectComponentWhileGettingDisablingRules
public void shouldRespectComponentWhileGettingDisablingRules()
-
gettingDisablingRulesShouldHandleNullBundleId
public void gettingDisablingRulesShouldHandleNullBundleId()
-
gettingDisablingRulesShouldHandleFirstProductOfNull
public void gettingDisablingRulesShouldHandleFirstProductOfNull()
-
gettingDisablingRulesShouldHandleSecondProductOfNull
public void gettingDisablingRulesShouldHandleSecondProductOfNull()
-
shouldNotReturnChangePriceRuleWhenNoSuchConditionalProductsInChangePriceRule
public void shouldNotReturnChangePriceRuleWhenNoSuchConditionalProductsInChangePriceRule()
-
shouldNotReturnChangePriceRuleWhenNoSuchTargetProductsInChangePriceBundleRule
public void shouldNotReturnChangePriceRuleWhenNoSuchTargetProductsInChangePriceBundleRule()
-
shouldNotReturnChangePriceRuleWhenNoSuchCurrencyInChangePriceRule
public void shouldNotReturnChangePriceRuleWhenNoSuchCurrencyInChangePriceRule()
-
shouldNotReturnChangePriceRuleForDifferentCurrencies
public void shouldNotReturnChangePriceRuleForDifferentCurrencies()
-
shouldReturnChangePriceRuleForProductsInOneComponent
public void shouldReturnChangePriceRuleForProductsInOneComponent()
-
shouldReturnChangePriceRuleForProductsInDifferentComponents
public void shouldReturnChangePriceRuleForProductsInDifferentComponents()
-
shouldNotReturnChangePriceRuleWhenRuleTypeIsAll
public void shouldNotReturnChangePriceRuleWhenRuleTypeIsAll()
-
shouldReturnChangePriceRuleWithLowestPrice
public void shouldReturnChangePriceRuleWithLowestPrice()
-
shouldReturnChangePriceRuleWithLowestPriceByOrderEntry
public void shouldReturnChangePriceRuleWithLowestPriceByOrderEntry() throws CommerceCartModificationException
-
shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct
public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct() throws CommerceCartModificationException
-
shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency
public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency() throws CommerceCartModificationException
-
shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll
public void shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll() throws CommerceCartModificationException
-
shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct
public void shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct() throws CommerceCartModificationException
-
getBundleRuleService
protected BundleRuleService getBundleRuleService()
-
setBundleRuleService
public void setBundleRuleService(BundleRuleService bundleRuleService)
-
addToCart
protected CommerceCartModification addToCart(java.lang.String productCode, java.lang.String componentId, java.util.Set<java.lang.Integer> groupNumbers) throws CommerceCartModificationException
-
addToCart
protected CommerceCartModification addToCart(java.lang.String productCode) throws CommerceCartModificationException
-
getProduct
protected ProductModel getProduct(java.lang.String code)
-
getBundleTemplate
protected BundleTemplateModel getBundleTemplate(java.lang.String templateId)
-
getCatalog
protected CatalogVersionModel getCatalog()
-
-