Class CPQReorderIntegrationTest

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.b2b.integrationtests.CPQReorderIntegrationTest
All Implemented Interfaces:
de.hybris.platform.testframework.JaloSessionHolder

@IntegrationTest public class CPQReorderIntegrationTest extends de.hybris.platform.sap.productconfig.facades.integrationtests.CPQFacadeLayerTest
Integration test for CPQ Reorder Integration
  • Field Summary

    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_CAMERA_SL, 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, commonI18NService, configurationLifecycleStrategy, configurationProductUtil, 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, 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    checkConfigWasCopied(String newConfigId, boolean isMock)
     
     
    protected String
    createConfigInCart(boolean isMock)
     
    protected String
     
    void
     
    protected void
     
    protected OrderData
    placeOrder(boolean validateCart)
     
    void
     
    void
     
    void
     
    void
     
    void
     
    void
     

    Methods inherited from class de.hybris.platform.sap.productconfig.facades.integrationtests.CPQFacadeLayerTest

    login, logout, prepareCPQData, removeB2BCartPopulator, validateCartAndPlaceOrder, validateCartAndPlaceOrder

    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, initProviders, isDefaultLifecycle, isExtensionInSetup, isPersistentLifecycle, makeProductCatalogVersionAvailableInSession, selectStrategyTestChecker, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CPQReorderIntegrationTest

      public CPQReorderIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown()
      Overrides:
      tearDown in class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest
    • importCPQTestData

      public void importCPQTestData() throws de.hybris.platform.impex.jalo.ImpExException, Exception
      Overrides:
      importCPQTestData in class de.hybris.platform.sap.productconfig.services.integrationtests.CPQServiceLayerTest
      Throws:
      de.hybris.platform.impex.jalo.ImpExException
      Exception
    • testReorder_Mock_OK

      public void testReorder_Mock_OK() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.InvalidCartException, de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, ParseException, de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
      de.hybris.platform.order.InvalidCartException
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
    • testReorder_CPS_withoutKBReDetermination

      public void testReorder_CPS_withoutKBReDetermination() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.InvalidCartException, de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, ParseException, de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
      de.hybris.platform.order.InvalidCartException
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
    • testReorder_CPS_withKBReDetermination

      public void testReorder_CPS_withKBReDetermination() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.InvalidCartException, de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, ParseException, de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
      de.hybris.platform.order.InvalidCartException
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
    • testReorder_Mock_InvalidKB

      public void testReorder_Mock_InvalidKB() throws de.hybris.platform.commerceservices.order.CommerceCartModificationException, de.hybris.platform.order.InvalidCartException, de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, ParseException, de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
      de.hybris.platform.order.InvalidCartException
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      ParseException
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
    • checkConfigIsInDefaultState

      protected void checkConfigIsInDefaultState(String newConfigId)
    • checkConfigWasCopied

      protected void checkConfigWasCopied(String newConfigId, boolean isMock)
    • makePersistentConfigInvalid

      protected void makePersistentConfigInvalid(String oldConfigId) throws de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      Throws:
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
    • createConfigDataForGet

      protected ConfigurationData createConfigDataForGet(String newConfigId)
    • getAndCheckNewConfigId

      protected String getAndCheckNewConfigId(String oldConfigId)
    • placeOrder

      protected OrderData placeOrder(boolean validateCart) throws de.hybris.platform.order.InvalidCartException, de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException, de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.order.InvalidCartException
      de.hybris.platform.servicelayer.security.auth.InvalidCredentialsException
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • createConfigInCart

      protected String createConfigInCart(boolean isMock) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException