Class ProductConfigRulesTest
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
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
ProductConfigRulesIntegrationTest
Base test class for rules related integration tests
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommerceCartServiceprotected 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 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 static final Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected ProductServiceprotected ProductConfigCartRAOPopulatorprotected ProductConfigurationServiceImplprotected RuleConditionsRegistryprotected RuleConditionsServiceprotected RuleMaintenanceServiceprotected RulesModuleDaoprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields 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 TypeMethodDescriptionprotected voidaddConfigurationToCart(ConfigModel configModel, KBKey kbKey) protected voidassertNoMessage(ConfigModel config) protected voidprotected voidassertSingleMessage(ConfigModel config, ProductConfigMessageSeverity expectedSeverity, String expectedMessage) protected voidassertSingleMessageForCstic(CsticModel cstic, ProductConfigMessageSeverity expectedSeverity, String expectedMessage) protected ConfigModelchangeValueAndUpdate(ConfigModel config, String cstic, String value) protected voidcheckCompilerAndPublishResult(List<SourceRuleModel> sourceRules, RuleCompilerPublisherResult compileAndPublishRules) voidprotected Stringprotected StringgetLogString(Set<ProductConfigMessage> messages) protected voidvoidprepareAndPublishRule(String... ruleNames) protected Set<BaseStoreModel>prepareBaseStores(Properties testProps) protected DateprepareDate(String dateAsString) protected SourceRuleModelprepareSourceRule(Map<String, String> nameToMessage, String ruleName) voidvoidsetUp()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_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
-
Field Details
-
ruleAwareService
-
ruleMaintenanceService
-
raoPopulator
-
productService
-
commerceCartService
-
rulesModuleDao
-
ruleConditionsRegistry
-
ruleConditionsService
-
expectedMessage
-
EXPECTED_MESSAGE
- See Also:
-
YM_NS_F160
- See Also:
-
CPQ_HT_SPK_COLOR
- See Also:
-
CPQ_HT_SPK_MODEL
- See Also:
-
EXP_NUMBER
- See Also:
-
YSAP_POC_SIMPLE_FLAG
- See Also:
-
STEREO
- See Also:
-
SURROUND
- See Also:
-
CPQ_HT_SURROUND_MODE
- See Also:
-
CPQ_SOFTWARE
- See Also:
-
PAINTER
- See Also:
-
CPQ_SECURITY
- See Also:
-
NORTON
- See Also:
-
CPQ_DISPLAY
- See Also:
-
CPQ_RAM
- See Also:
-
CPQ_DISPLAY_17
- See Also:
-
CPQ_DISPLAY_13
- See Also:
-
CPQ_DISPLAY_15
- See Also:
-
CPQ_MONITOR
- See Also:
-
CPQ_MONITOR_21
- See Also:
-
CPQ_MONITOR_24
- See Also:
-
CPQ_MONITOR_24HD
- See Also:
-
CPQ_MONITOR_27
- See Also:
-
CPQ_CPU
- See Also:
-
INTELI7_40
- See Also:
-
INTELI5_35
- See Also:
-
CPQ_OS
- See Also:
-
LINUSDEBIAN
- See Also:
-
MS10
- See Also:
-
-
Constructor Details
-
ProductConfigRulesTest
public ProductConfigRulesTest()
-
-
Method Details
-
importCPQTestData
- Overrides:
importCPQTestDatain classCPQServiceLayerTest- Throws:
ImpExExceptionException
-
setUp
- Throws:
ImpExExceptionException
-
enforeRuleAwareService
public void enforeRuleAwareService() -
initProviders
public void initProviders()- Overrides:
initProvidersin classCPQServiceLayerTest
-
restoreDefaultProductConfigService
public void restoreDefaultProductConfigService() -
assertSingleMessage
protected void assertSingleMessage(ConfigModel config, ProductConfigMessageSeverity expectedSeverity, String expectedMessage) -
assertSingleMessageForCstic
protected void assertSingleMessageForCstic(CsticModel cstic, ProductConfigMessageSeverity expectedSeverity, String expectedMessage) -
assertNoMessage
-
assertNoMessageForCstic
-
getLogString
-
prepareAndPublishRule
protected Map<String,String> prepareAndPublishRule(String... ruleNames) throws RuleEngineServiceException - Throws:
RuleEngineServiceException
-
prepareSourceRule
-
prepareDate
-
checkCompilerAndPublishResult
protected void checkCompilerAndPublishResult(List<SourceRuleModel> sourceRules, RuleCompilerPublisherResult compileAndPublishRules) -
prepareBaseStores
-
changeValueAndUpdate
-
addConfigurationToCart
protected void addConfigurationToCart(ConfigModel configModel, KBKey kbKey) throws CommerceCartModificationException -
getFirstGroupIdOfRootInstance
-