Class ProductConfigRulesIntegrationTest
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.integrationtests.ProductConfigRulesIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
Integration test for Product configuration rules integration
-
Field Summary
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_FLAGFields 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_SITEFields 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 TypeMethodDescriptionvoidsee also TIGER-2285voidvoidvoidvoidvoidCondition in rule checks for 1,500 (which is also displayed on UI, if you enter 1500.0), however the RAO contains 1500.0 Fix: use ValueFormatTranslator for numeric CStics to get formatted string to be set into RAO.voidCondition in rule checks for 500 (which is also displayed on UI, if you enter 500.0), however the RAO contains 500 Fix: use ValueFormatTranslator for numeric CStics to get formatted string to be set into RAO.voidvoidvoidvoidvoidRules should be also executed, when configuration is created from external source.voidvoidvoidvoidMethods inherited from class de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest
addConfigurationToCart, assertNoMessage, assertNoMessageForCstic, assertSingleMessage, assertSingleMessageForCstic, changeValueAndUpdate, checkCompilerAndPublishResult, enforeRuleAwareService, getFirstGroupIdOfRootInstance, getLogString, importCPQTestData, initProviders, prepareAndPublishRule, prepareBaseStores, prepareDate, prepareSourceRule, restoreDefaultProductConfigService, setUpMethods 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_ENMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
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
-
Constructor Details
-
ProductConfigRulesIntegrationTest
public ProductConfigRulesIntegrationTest()
-
-
Method Details
-
testModifyDefaultConfigOfVariantDefaultMessage
public void testModifyDefaultConfigOfVariantDefaultMessage() throws CommerceCartModificationException, RuleEngineServiceException -
testRemoveAssignableValueNoMessage
public void testRemoveAssignableValueNoMessage() throws CommerceCartModificationException, RuleEngineServiceException -
testModifyDefaultConfigAndRemoveAssignableValueBasedOnCartNoMessage
public void testModifyDefaultConfigAndRemoveAssignableValueBasedOnCartNoMessage() throws CommerceCartModificationException, RuleEngineServiceException -
testNumericConditionUnderThousand
public void testNumericConditionUnderThousand() throws RuleEngineServiceException, CommerceCartModificationExceptionCondition in rule checks for 500 (which is also displayed on UI, if you enter 500.0), however the RAO contains 500 Fix: use ValueFormatTranslator for numeric CStics to get formatted string to be set into RAO. -
testNumericConditionOverThousand
public void testNumericConditionOverThousand() throws RuleEngineServiceException, CommerceCartModificationExceptionCondition in rule checks for 1,500 (which is also displayed on UI, if you enter 1500.0), however the RAO contains 1500.0 Fix: use ValueFormatTranslator for numeric CStics to get formatted string to be set into RAO. -
testSetDisplayOnlyHideAnotherWarnMessage
- Throws:
RuleEngineServiceException
-
testDoesNotHaveValueConditionAndDisplayMessageOnly
public void testDoesNotHaveValueConditionAndDisplayMessageOnly() throws RuleEngineServiceException, CommerceCartModificationException -
testShowMessagesOnProductAndCsticLevels
public void testShowMessagesOnProductAndCsticLevels() throws CommerceCartModificationException, RuleEngineServiceException -
testRuleForBaseStore_testConfigureStore
public void testRuleForBaseStore_testConfigureStore() throws CommerceCartModificationException, RuleEngineServiceException -
testRuleForBaseStore_allBaseStores
public void testRuleForBaseStore_allBaseStores() throws CommerceCartModificationException, RuleEngineServiceException -
testRuleForBaseStore_dummyStore
public void testRuleForBaseStore_dummyStore() throws CommerceCartModificationException, RuleEngineServiceException -
testSupportMultilevelConfiguration
public void testSupportMultilevelConfiguration() throws CommerceCartModificationException, RuleEngineServiceException -
testDefaultMessageNotShownWhenDefaultValueModified
public void testDefaultMessageNotShownWhenDefaultValueModified() throws CommerceCartModificationException, RuleEngineServiceExceptionsee also TIGER-2285 -
testRulesAreAppliedOnCreateFromExternal
Rules should be also executed, when configuration is created from external source. This happens for exmaple, when a cart is restored from cookie and users clicks on the change config link afterwards
see also TIGER-2332 -
testExecuteOnlyRuleWithHighestPriorityInExclusiveGroup
public void testExecuteOnlyRuleWithHighestPriorityInExclusiveGroup() throws CommerceCartModificationException, RuleEngineServiceException -
testVerifyProductParameterFormat
public void testVerifyProductParameterFormat() throws CommerceCartModificationException, RuleEngineServiceException
-