Class DefaultBundleRuleServiceNestedIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DefaultBundleRuleServiceNestedIntegrationTest extends ServicelayerTest
  • Field Details

  • Constructor Details

    • DefaultBundleRuleServiceNestedIntegrationTest

      public DefaultBundleRuleServiceNestedIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • shouldDisableInOneComponent

      public void shouldDisableInOneComponent() throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • gettingDisablingRulesShouldHandleNullOrder

      public void gettingDisablingRulesShouldHandleNullOrder()
    • gettingDisablingRuleShouldHandleNullGroup

      public void gettingDisablingRuleShouldHandleNullGroup()
    • shouldDisableInDifferentComponents

      public void shouldDisableInDifferentComponents() throws CommerceCartModificationException
      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
      Throws:
      CommerceCartModificationException
    • shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct

      public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignProduct() throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency

      public void shouldNotReturnChangePriceRuleWithLowestPriceForForeignCurrency() throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll

      public void shouldNotReturnChangePriceRuleWithLowestPriceIfRuleTypeAll() throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct

      public void shouldReturnChangePriceRuleWithLowestPriceForCorrespondingProduct() throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • getBundleRuleService

      protected BundleRuleService getBundleRuleService()
    • setBundleRuleService

      public void setBundleRuleService(BundleRuleService bundleRuleService)
    • addToCart

      protected CommerceCartModification addToCart(String productCode, String componentId, Set<Integer> groupNumbers) throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • addToCart

      protected CommerceCartModification addToCart(String productCode) throws CommerceCartModificationException
      Throws:
      CommerceCartModificationException
    • getProduct

      protected ProductModel getProduct(String code)
    • getBundleTemplate

      protected BundleTemplateModel getBundleTemplate(String templateId)
    • getCatalog

      protected CatalogVersionModel getCatalog()