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
@IntegrationTest public class ProductConfigRulesIntegrationTest extends ProductConfigRulesTest
-
-
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, ruleMaintenanceService, 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, configurationLifecycleStrategy, configurationProductUtil, cpqAbstractOrderEntryLinkStrategy, cpqService, cpqServiceNoRules, customerModel, flexibleSearchService, i18NService, KB_CPQ_HOME_THEATER, KB_CPQ_LAPTOP, KB_CPQ_LAPTOP_MUSIC, KB_Y_SAP_SIMPLE_POC, modelService, 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 Constructor Description ProductConfigRulesIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestDefaultMessageNotShownWhenDefaultValueModified()see also TIGER-2285voidtestDoesNotHaveValueConditionAndDisplayMessageOnly()voidtestModifyDefaultConfigAndRemoveAssignableValueBasedOnCartNoMessage()voidtestModifyDefaultConfigOfVariantDefaultMessage()voidtestNumericConditionOverThousand()Condition 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.voidtestNumericConditionUnderThousand()Condition 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.voidtestRemoveAssignableValueNoMessage()voidtestRuleForBaseStore_allBaseStores()voidtestRuleForBaseStore_dummyStore()voidtestRuleForBaseStore_testConfigureStore()voidtestRulesAreAppliedOnCreateFromExternal()Rules should be also executed, when configuration is created from external source.voidtestSetDisplayOnlyHideAnotherWarnMessage()voidtestShowMessagesOnProductAndCsticLevels()voidtestSupportMultilevelConfiguration()-
Methods inherited from class de.hybris.platform.sap.productconfig.rules.integrationtests.ProductConfigRulesTest
addConfigurationToCart, assertNoMessage, assertNoMessageForCstic, assertSingleMessage, assertSingleMessageForCstic, changeValueAndUpdate, checkCompilerAndPublishResult, enforeRuleAwareService, getLogString, importCPQTestData, initProviders, prepareAndPublishRule, prepareBaseStores, prepareDate, prepareSourceRule, restoreDefaultProductConfigService, setUp
-
Methods inherited from class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest
clearProductConfigurationItems, createCoreData, ensureCPSProvider, ensureMockProvider, ensureNoRulesCPSWithDefaultLifecyclce, ensureSSCProvider, getFromPersistence, getLifecycleBeanName, importCPQUserData, importCsvIfExist, isDefaultLifecycle, isPersistentLifecycle, 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
-
-
-
-
Method Detail
-
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
public void testSetDisplayOnlyHideAnotherWarnMessage() throws RuleEngineServiceException- 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
public void testRulesAreAppliedOnCreateFromExternal() throws CommerceCartModificationExceptionRules 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
-
-