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 for
FindBundlePricingWithCurrentPriceFactoryStrategy and
DefaultBundleRuleService-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CartModelprotected CommerceCartServiceprotected CurrencyModelprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected ProductServiceprotected static final Stringorg.junit.rules.ExpectedExceptionprotected UnitModelprotected UserServiceFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommerceCartModificationprotected CommerceCartModificationprotected BundleRuleServiceprotected BundleTemplateModelgetBundleTemplate(String templateId) protected CatalogVersionModelprotected ProductModelgetProduct(String code) voidvoidvoidvoidvoidvoidsetBundleRuleService(BundleRuleService bundleRuleService) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
PRODUCT01
- See Also:
-
PRODUCT02
- See Also:
-
PRODUCT05
- See Also:
-
PRODUCT06
- See Also:
-
PREMIUM01
- See Also:
-
PREMIUM02
- See Also:
-
REGULAR_COMPONENT
- See Also:
-
OPTIONAL_COMPONENT
- See Also:
-
LEAF_BUNDLE_TEMPLATE_1
- See Also:
-
LEAF_BUNDLE_TEMPLATE_2
- See Also:
-
thrown
public org.junit.rules.ExpectedException thrown -
cart
-
unitModel
-
currency
-
userService
-
commerceCartService
-
productService
-
-
Constructor Details
-
DefaultBundleRuleServiceNestedIntegrationTest
public DefaultBundleRuleServiceNestedIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
shouldDisableInOneComponent
-
gettingDisablingRulesShouldHandleNullOrder
public void gettingDisablingRulesShouldHandleNullOrder() -
gettingDisablingRuleShouldHandleNullGroup
public void gettingDisablingRuleShouldHandleNullGroup() -
shouldDisableInDifferentComponents
-
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
-
setBundleRuleService
-
addToCart
protected CommerceCartModification addToCart(String productCode, String componentId, Set<Integer> groupNumbers) throws CommerceCartModificationException -
addToCart
protected CommerceCartModification addToCart(String productCode) throws CommerceCartModificationException -
getProduct
-
getBundleTemplate
-
getCatalog
-