Class LifecycleStrategiesIntegrationTestBase
- 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.facades.integrationtests.CPQFacadeLayerTest
-
- de.hybris.platform.sap.productconfig.facades.integrationtests.LifecycleStrategiesIntegrationTestBase
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
MockLifecycleStrategiesIntegrationTest
@ManualTest public class LifecycleStrategiesIntegrationTestBase extends CPQFacadeLayerTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LifecycleStrategiesIntegrationTestBase.PrepareProcessTestReturnContainer
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ADMINISTRATOR
protected static java.lang.String
ANONYMOUS
protected static java.lang.String
CPQ_DISPLAY
protected static java.lang.String
CPQ_DISPLAY_13
protected static java.lang.String
CPQ_DISPLAY_15
protected static java.lang.String
CPQ_DISPLAY_17
protected static java.lang.String
CPQ_SECURITY
protected LifecycleStrategiesTestChecker
lifecycleChecker
protected static java.lang.String
MCAFEE
protected static java.lang.String
NORTON
-
Fields inherited from class de.hybris.platform.sap.productconfig.facades.integrationtests.CPQFacadeLayerTest
cartFacade, checkoutFacade, commerceCartFactory, configOrderIntegrationFacade, configQuoteIntegrationFacade, cpqAbstractOrderEntryLinkStrategy, cpqCartFacade, cpqFacade, cpqSavedCartFacade, cpqSessionAccessFacade, customerFacade, defaultQuoteFacade, facadeConfigValueHelper, KB_KEY_CONF_PIPE, KB_KEY_CPQ_HOME_THEATER, KB_KEY_CPQ_LAPTOP, KB_KEY_CPQ_LAPTOP_MUSIC, KB_KEY_CPQ_LAPTOP_MUZAC, KB_KEY_KD990SOL, KB_KEY_MIXER, KB_KEY_NUMERIC_PRODUCT, KB_KEY_WEC_DRAGON_BUS, KB_KEY_Y_SAP_SIMPLE_POC, KB_VERSION, LOGICAL_SYSTEM, PASSWORD, productConfigurationPersistenceService, saveCartFacade, SOLD_TO_NAME, USER_NAME, USER_NAME2
-
Fields inherited from class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest
authenticationService, baseSiteService, baseStoreService, cartService, catalogVersionService, commerceCartService, configurationLifecycleStrategy, configurationProductUtil, 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, productService, 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 LifecycleStrategiesIntegrationTestBase()
-
Method Summary
-
Methods inherited from class de.hybris.platform.sap.productconfig.facades.integrationtests.CPQFacadeLayerTest
login, logout, prepareCPQData, validateCartAndPlaceOrder, validateCartAndPlaceOrder
-
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, 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
-
-
-
-
Field Detail
-
lifecycleChecker
protected LifecycleStrategiesTestChecker lifecycleChecker
-
ADMINISTRATOR
protected static final java.lang.String ADMINISTRATOR
- See Also:
- Constant Field Values
-
ANONYMOUS
protected static final java.lang.String ANONYMOUS
- See Also:
- Constant Field Values
-
CPQ_DISPLAY
protected static final java.lang.String CPQ_DISPLAY
- See Also:
- Constant Field Values
-
CPQ_DISPLAY_13
protected static final java.lang.String CPQ_DISPLAY_13
- See Also:
- Constant Field Values
-
CPQ_DISPLAY_17
protected static final java.lang.String CPQ_DISPLAY_17
- See Also:
- Constant Field Values
-
CPQ_DISPLAY_15
protected static final java.lang.String CPQ_DISPLAY_15
- See Also:
- Constant Field Values
-
CPQ_SECURITY
protected static final java.lang.String CPQ_SECURITY
- See Also:
- Constant Field Values
-
NORTON
protected static final java.lang.String NORTON
- See Also:
- Constant Field Values
-
MCAFEE
protected static final java.lang.String MCAFEE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initProviders
public void initProviders()
- Overrides:
initProviders
in classCPQServiceLayerTest
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
importCPQTestData
public void importCPQTestData() throws ImpExException, java.lang.Exception
- Overrides:
importCPQTestData
in classCPQServiceLayerTest
- Throws:
ImpExException
java.lang.Exception
-
testLinkToProduct
public void testLinkToProduct() throws CommerceCartModificationException
-
initializeKbKey
public void initializeKbKey()
-
testLinkToCartEntryForVariantThenRestore
public void testLinkToCartEntryForVariantThenRestore() throws CommerceCartModificationException
-
testAddToCartThenConfigureTwice
public void testAddToCartThenConfigureTwice() throws CommerceCartModificationException
-
testAddToCartThenConfigureOnSameDraft
public void testAddToCartThenConfigureOnSameDraft() throws CommerceCartModificationException
-
testAddToCartDirectlyThenConfigure
public void testAddToCartDirectlyThenConfigure() throws CommerceCartModificationException, InvalidCredentialsException
-
testLinkToCartEntryThenRemove
public void testLinkToCartEntryThenRemove() throws CommerceCartModificationException, InvalidCredentialsException
-
testCreateConfigWithLogInUser
public void testCreateConfigWithLogInUser() throws CommerceCartModificationException, InvalidCredentialsException
-
testUpdateUserAfterLogIn
public void testUpdateUserAfterLogIn() throws CommerceCartModificationException, InvalidCredentialsException
-
testSanityCheckToProductLinkPersistent
public void testSanityCheckToProductLinkPersistent() throws InvalidCredentialsException
Further logic needs to be pushed to facades, therefore ignore for the time being- Throws:
InvalidCredentialsException
-
testSanityCheckToProductLinkDefault
public void testSanityCheckToProductLinkDefault() throws InvalidCredentialsException
- Throws:
InvalidCredentialsException
-
testReleaseConfigurationsOnSessionExpire
public void testReleaseConfigurationsOnSessionExpire() throws JaloSecurityException
- Throws:
JaloSecurityException
-
testOrderProcessPersistent
public void testOrderProcessPersistent() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOrderProcessDefault
public void testOrderProcessDefault() throws CommerceCartModificationException, InvalidCartException, InvalidCredentialsException
-
testAddToCartDirectlyForVariant
public void testAddToCartDirectlyForVariant() throws CommerceCartModificationException, InvalidCredentialsException
-
testAddVariantDirectlyToCarAndProveDraftHandlingPersistent
public void testAddVariantDirectlyToCarAndProveDraftHandlingPersistent() throws CommerceCartModificationException, InvalidCredentialsException
-
testAddVariantDirectlyToCarAndProveDraftHandlingDefault
public void testAddVariantDirectlyToCarAndProveDraftHandlingDefault() throws CommerceCartModificationException, InvalidCredentialsException
-
testQuoteProcessPersistent
public void testQuoteProcessPersistent() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testQuoteProcessDefault
public void testQuoteProcessDefault() throws CommerceCartModificationException, InvalidCartException, InvalidCredentialsException
-
prepareProcessTest
protected LifecycleStrategiesIntegrationTestBase.PrepareProcessTestReturnContainer prepareProcessTest() throws CommerceCartModificationException, InvalidCredentialsException
-
makeNewSessionByLoggingOutAndIn
protected void makeNewSessionByLoggingOutAndIn(java.lang.String userName) throws InvalidCredentialsException
- Throws:
InvalidCredentialsException
-
-