Class CharacteristicValueRulesResultHandlerIntegrationTest

java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest
de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest
de.hybris.platform.sap.productconfig.rules.cps.integrationtests.CharacteristicValueRulesResultHandlerIntegrationTest
All Implemented Interfaces:
de.hybris.platform.testframework.JaloSessionHolder

@IntegrationTest public class CharacteristicValueRulesResultHandlerIntegrationTest extends de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest
Integration test for Characteristic Value Rules Result Handler Integration
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected de.hybris.platform.sap.productconfig.services.intf.ProductConfigurationPersistenceService
     

    Fields inherited from class de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest

    commerceCartService, CPQ_CPU, CPQ_DISPLAY, CPQ_DISPLAY_13, CPQ_DISPLAY_15, CPQ_DISPLAY_17, CPQ_HT_SPK_COLOR, CPQ_HT_SPK_MODEL, CPQ_HT_SURROUND_MODE, CPQ_MONITOR, CPQ_MONITOR_21, CPQ_MONITOR_24, CPQ_MONITOR_24HD, CPQ_MONITOR_27, CPQ_OS, CPQ_RAM, CPQ_SECURITY, CPQ_SOFTWARE, EXP_NUMBER, EXPECTED_MESSAGE, expectedMessage, INTELI5_35, INTELI7_40, LINUSDEBIAN, MS10, NORTON, PAINTER, productService, raoPopulator, ruleAwareService, ruleConditionsRegistry, ruleConditionsService, ruleMaintenanceService, rulesModuleDao, STEREO, SURROUND, YM_NS_F160, YSAP_POC_SIMPLE_FLAG

    Fields inherited from class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest

    authenticationService, baseSiteService, baseStoreService, cartService, catalogVersionService, commonI18NService, configurationLifecycleStrategy, configurationProductUtil, cpqAbstractOrderEntryLinkStrategy, cpqService, cpqServiceNoRules, customerModel, externalConfigurationAccess, flexibleSearchService, i18NService, KB_CONF_HOME_THEATER, KB_CPQ_HOME_THEATER, KB_CPQ_LAPTOP, KB_CPQ_LAPTOP_MUSIC, KB_Y_SAP_SIMPLE_POC, modelService, PDT_CALCULATION_MODE, PDT_CALCULATION_MODE_SERVICE_LAYER, pdtCalculationMode, PRODUCT_CODE_CONF_HOME_THEATER, PRODUCT_CODE_CONF_PIPE, PRODUCT_CODE_CPQ_HOME_THEATER, PRODUCT_CODE_CPQ_LAPTOP, PRODUCT_CODE_CPQ_LAPTOP_MUSIC, PRODUCT_CODE_CPQ_LAPTOP_MUZAC, PRODUCT_CODE_YSAP_NOCFG, PRODUCT_CODE_YSAP_SIMPLE_POC, productConfigurationCacheAccessService, providerFactory, realUserService, serviceConfigValueHelper, TEST_CONFIGURE_SITE

    Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest

    importService

    Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test

    jaloSession
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    createMessage(String messageText, Date endDate)
     
    createResult(String csticId, String valueId, BigDecimal discount)
     
    protected void
     
    protected void
     
    protected void
     
    void
     
    void
     
    void
     

    Methods inherited from class de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest

    addConfigurationToCart, assertNoMessage, assertNoMessageForCstic, assertSingleMessage, assertSingleMessageForCstic, changeValueAndUpdate, checkCompilerAndPublishResult, enforeRuleAwareService, getFirstGroupIdOfRootInstance, getLogString, initProviders, prepareAndPublishRule, prepareBaseStores, prepareDate, prepareSourceRule, restoreDefaultProductConfigService, setUp

    Methods inherited from class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest

    adjustEnvironment, cleanUpEnvironment, clearProductConfigurationItems, createCoreData, disableSOMIfPresent, ensureCPSProvider, ensureMockProvider, ensureNoRulesCPSWithDefaultLifecyclce, ensureSSCProvider, getFromPersistence, getLifecycleBeanName, importCPQStockData, importCPQUserData, importCsvIfExist, importPromotionDummyDataIfRequired, importSapConfigurationTestDataIfExisting, isDefaultLifecycle, isExtensionInSetup, isPersistentLifecycle, login, makeProductCatalogVersionAvailableInSession, prepareCPQData, selectStrategyTestChecker, tearDown, useCurrency_USD, useLocale_EN

    Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cpqPersistenceService

      protected de.hybris.platform.sap.productconfig.services.intf.ProductConfigurationPersistenceService cpqPersistenceService
  • Constructor Details

    • CharacteristicValueRulesResultHandlerIntegrationTest

      public CharacteristicValueRulesResultHandlerIntegrationTest()
  • Method Details

    • importCPQTestData

      protected void importCPQTestData() throws de.hybris.platform.impex.jalo.ImpExException, Exception
      Overrides:
      importCPQTestData in class de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest
      Throws:
      de.hybris.platform.impex.jalo.ImpExException
      Exception
    • testRulesResultLifecycle

      public void testRulesResultLifecycle()
    • createMessage

      protected DiscountMessageRulesResultModel createMessage(String messageText, Date endDate)
    • testRulesResultLifecycleDeleteAndPersistAgain

      public void testRulesResultLifecycleDeleteAndPersistAgain()
    • createResult

      protected CharacteristicValueRulesResultModel createResult(String csticId, String valueId, BigDecimal discount)
    • testRulesResultDeletionByConfigModelDelete

      public void testRulesResultDeletionByConfigModelDelete()
    • deleteProductConfiguration

      protected void deleteProductConfiguration(String configId)
    • persistNewConfiguration

      protected void persistNewConfiguration(String configId)
    • checkNumberOfResultsPersisted

      protected void checkNumberOfResultsPersisted(int numExpected)
    • checkNumberOfMessagesPersisted

      protected void checkNumberOfMessagesPersisted(int numExpected)