Class CPQServiceLayerTest
- 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
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
CPQConfigurableCheckerIntegrationTest
,CPQFacadeLayerTest
,PersistenceCleanUpJobIntegrationTest
,ProductConfigRulesTest
,ProductConfigurationPersistenceServiceIntegrationTest
public abstract class CPQServiceLayerTest extends ServicelayerTest
-
-
Field Summary
-
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 CPQServiceLayerTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearProductConfigurationItems()
static void
createCoreData()
void
ensureCPSProvider()
void
ensureMockProvider()
protected void
ensureNoRulesCPSWithDefaultLifecyclce()
void
ensureSSCProvider()
protected <T> T
getFromPersistence(java.lang.String flexibleSearchSelect)
Reads a model from persistence via flexible searchprotected java.lang.String
getLifecycleBeanName()
protected void
importCPQTestData()
protected void
importCPQUserData()
protected void
importCsvIfExist(java.lang.String csvFile, java.lang.String encoding)
void
initProviders()
boolean
isDefaultLifecycle()
boolean
isPersistentLifecycle()
protected void
makeProductCatalogVersionAvailableInSession()
protected void
prepareCPQData()
protected LifecycleStrategiesTestChecker
selectStrategyTestChecker()
void
tearDown()
protected void
useCurrency_USD()
protected void
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
-
-
-
-
Field Detail
-
PRODUCT_CODE_YSAP_NOCFG
protected static final java.lang.String PRODUCT_CODE_YSAP_NOCFG
- See Also:
- Constant Field Values
-
PRODUCT_CODE_CPQ_HOME_THEATER
protected static final java.lang.String PRODUCT_CODE_CPQ_HOME_THEATER
- See Also:
- Constant Field Values
-
PRODUCT_CODE_CPQ_LAPTOP
protected static final java.lang.String PRODUCT_CODE_CPQ_LAPTOP
- See Also:
- Constant Field Values
-
PRODUCT_CODE_CPQ_LAPTOP_MUSIC
protected static final java.lang.String PRODUCT_CODE_CPQ_LAPTOP_MUSIC
- See Also:
- Constant Field Values
-
PRODUCT_CODE_CPQ_LAPTOP_MUZAC
protected static final java.lang.String PRODUCT_CODE_CPQ_LAPTOP_MUZAC
- See Also:
- Constant Field Values
-
PRODUCT_CODE_YSAP_SIMPLE_POC
protected static final java.lang.String PRODUCT_CODE_YSAP_SIMPLE_POC
- See Also:
- Constant Field Values
-
PRODUCT_CODE_CONF_PIPE
protected static final java.lang.String PRODUCT_CODE_CONF_PIPE
- See Also:
- Constant Field Values
-
TEST_CONFIGURE_SITE
protected static final java.lang.String TEST_CONFIGURE_SITE
- See Also:
- Constant Field Values
-
cartService
protected CartService cartService
-
commerceCartService
protected CommerceCartService commerceCartService
-
productService
protected ProductService productService
-
configurationProductUtil
protected ConfigurationProductUtil configurationProductUtil
-
catalogVersionService
protected CatalogVersionService catalogVersionService
-
modelService
protected ModelService modelService
-
realUserService
protected UserService realUserService
-
providerFactory
protected SwitchableProviderFactory providerFactory
-
cpqService
protected ProductConfigurationService cpqService
-
configurationLifecycleStrategy
protected ConfigurationLifecycleStrategy configurationLifecycleStrategy
-
cpqAbstractOrderEntryLinkStrategy
protected ConfigurationAbstractOrderEntryLinkStrategy cpqAbstractOrderEntryLinkStrategy
-
authenticationService
protected AuthenticationService authenticationService
-
productConfigurationCacheAccessService
protected ProductConfigurationCacheAccessService productConfigurationCacheAccessService
-
i18NService
protected I18NService i18NService
-
flexibleSearchService
protected FlexibleSearchService flexibleSearchService
-
baseStoreService
protected BaseStoreService baseStoreService
-
baseSiteService
protected BaseSiteService baseSiteService
-
cpqServiceNoRules
protected ProductConfigurationService cpqServiceNoRules
-
customerModel
protected CustomerModel customerModel
-
serviceConfigValueHelper
protected ServiceConfigurationValueHelperImpl serviceConfigValueHelper
-
KB_CPQ_HOME_THEATER
protected static final KBKey KB_CPQ_HOME_THEATER
-
KB_CPQ_LAPTOP
protected static final KBKey KB_CPQ_LAPTOP
-
KB_Y_SAP_SIMPLE_POC
protected static final KBKey KB_Y_SAP_SIMPLE_POC
-
KB_CPQ_LAPTOP_MUSIC
protected static final KBKey KB_CPQ_LAPTOP_MUSIC
-
-
Method Detail
-
importCsvIfExist
protected void importCsvIfExist(java.lang.String csvFile, java.lang.String encoding) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createCoreData
public static void createCoreData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
prepareCPQData
protected void prepareCPQData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
ensureNoRulesCPSWithDefaultLifecyclce
protected void ensureNoRulesCPSWithDefaultLifecyclce() throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.SecurityException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
- Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
-
makeProductCatalogVersionAvailableInSession
protected void makeProductCatalogVersionAvailableInSession()
-
useCurrency_USD
protected void useCurrency_USD()
-
useLocale_EN
protected void useLocale_EN()
-
importCPQUserData
protected void importCPQUserData() throws ImpExException
- Throws:
ImpExException
-
importCPQTestData
protected void importCPQTestData() throws ImpExException, java.lang.Exception
- Throws:
ImpExException
java.lang.Exception
-
initProviders
public void initProviders()
-
ensureMockProvider
public void ensureMockProvider()
-
ensureSSCProvider
public void ensureSSCProvider()
-
ensureCPSProvider
public void ensureCPSProvider()
-
getFromPersistence
protected <T> T getFromPersistence(java.lang.String flexibleSearchSelect)
Reads a model from persistence via flexible search- Parameters:
flexibleSearchSelect
-- Returns:
- Model
-
tearDown
public void tearDown()
-
clearProductConfigurationItems
protected void clearProductConfigurationItems()
-
getLifecycleBeanName
protected java.lang.String getLifecycleBeanName() throws java.lang.AssertionError
- Throws:
java.lang.AssertionError
-
isPersistentLifecycle
public boolean isPersistentLifecycle() throws java.lang.AssertionError
- Throws:
java.lang.AssertionError
-
isDefaultLifecycle
public boolean isDefaultLifecycle() throws java.lang.AssertionError
- Throws:
java.lang.AssertionError
-
selectStrategyTestChecker
protected LifecycleStrategiesTestChecker selectStrategyTestChecker()
-
-