@IntegrationTest public class PersonalizationCmsWebservicesTest extends BaseWebServiceTest
ACTION, ACTION_ENDPOINT, ADMIN_PASSWORD, ADMIN_USERNAME, CLIENT_ID, CLIENT_SECRET, CMSMANAGER_PASSWORD, CMSMANAGER_USERNAME, CONTAINER, CUSTOMER_PASSWORD, CUSTOMER_USERNAME, CUSTOMERSEGMENTATION_ENDPOINT, CUSTOMIZATION, FIELDS, INCORRECT_ID, NON_EXISTINGACTION, NONEXISTING_CUSTOMIZATION, NONEXISTING_VARIATION, SEGMENT, SEGMENT_ENDPOINT, TRIGGER, TRIGGER_ENDPOINT, VARIATION, VARIATION_ENDPOINT, VERSIONdefaultLanguage, jaloSession| Constructor and Description |
|---|
PersonalizationCmsWebservicesTest() |
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, unmarshallResultcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void setUp()
throws Exception
setUp in class BaseWebServiceTestExceptionpublic void shouldReplaceHomepageBannerComponentOnPage()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldReplaceHomepageBannerComponentOnPageTemplate()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldAddAndRemovePersonalizationOnComponent()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldAdd1ActionAndRemoveVariation()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldAdd1ActionAndRemoveCustomization()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldAdd2AndRemove1Action()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldUpdateCustomizationRankAndNothingChange()
throws JAXBException
JAXBExceptionpublic void shouldUpdateCustomizationRankToHigher()
throws JAXBException
JAXBExceptionprotected Integer getCustomizationRank(CustomizationListWsDTO customizations, String customizationCode)
protected void deleteVariationAndAssertItIsGone()
protected void deleteCustomizationAndAssertItIsGone()
protected void deleteActionAndAssertItIsGone(String actionCode1)
protected CxCmsComponentContainerData replaceComponentOnPageAndAssertItExists(String componentToPersonalize, int componentPosition, String pageId, String slotId, String catalog, String catalogVersion) throws JAXBException
JAXBExceptionprotected ContentSlotModel getSlot(String pageId, String catalog, String catalogVersion)
protected void createActionOnContainerAndAssertItExists(String actionCode, String componentId, String containerUid)
protected void assertContainerIsDeleted(String containerUid)
Copyright © 2017 SAP SE. All Rights Reserved.