Class PersonalizationCmsWebservicesTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.personalizationwebservices.BaseWebServiceTest
de.hybris.platform.personalizationcmsweb.PersonalizationCmsWebservicesTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.personalizationwebservices.BaseWebServiceTest
ACTION, ACTION_ENDPOINT, ADMIN_PASSWORD, ADMIN_USERNAME, CLIENT_ID, CLIENT_SECRET, CMSMANAGER_NOACCESS_USERNAME, CMSMANAGER_PASSWORD, CMSMANAGER_READ_ONLY_USERNAME, 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, VERSIONFields 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 voidassertContainerIsDeleted(String containerUid) voidcleanup()protected voidcreateActionOnContainerAndAssertItExists(String actionCode, String componentId, String containerUid) protected voiddeleteActionAndAssertItIsGone(String actionCode1) protected voidprotected voidprotected IntegergetCustomizationRank(CustomizationListWsDTO customizations, String customizationCode) protected ContentSlotModelprotected CxCmsComponentContainerDatareplaceComponentOnPageAndAssertItExists(String componentToPersonalize, int componentPosition, String pageId, String slotId, String catalog, String catalogVersion) voidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class de.hybris.platform.personalizationwebservices.BaseWebServiceTest
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, unmarshallResultMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, 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
-
Constructor Details
-
PersonalizationCmsWebservicesTest
public PersonalizationCmsWebservicesTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classBaseWebServiceTest- Throws:
Exception
-
cleanup
public void cleanup() -
shouldReplaceHomepageBannerComponentOnPage
public void shouldReplaceHomepageBannerComponentOnPage() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldReplaceHomepageBannerComponentOnPageTemplate
public void shouldReplaceHomepageBannerComponentOnPageTemplate() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldAddAndRemovePersonalizationOnComponent
public void shouldAddAndRemovePersonalizationOnComponent() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldAdd1ActionAndRemoveVariation
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldAdd1ActionAndRemoveCustomization
public void shouldAdd1ActionAndRemoveCustomization() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldAdd2AndRemove1Action
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
shouldUpdateCustomizationRankAndNothingChange
public void shouldUpdateCustomizationRankAndNothingChange() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
shouldUpdateCustomizationRankToHigher
public void shouldUpdateCustomizationRankToHigher() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
shouldReturnValidationErrorOnUpdateCustomizationRankWhenNotANumber
public void shouldReturnValidationErrorOnUpdateCustomizationRankWhenNotANumber() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
shouldReturnValidationErrorOnUpdateCustomizationRankWhenNotInteger
public void shouldReturnValidationErrorOnUpdateCustomizationRankWhenNotInteger() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
getCustomizationRank
protected Integer getCustomizationRank(CustomizationListWsDTO customizations, String customizationCode) -
deleteVariationAndAssertItIsGone
protected void deleteVariationAndAssertItIsGone() -
deleteCustomizationAndAssertItIsGone
protected void deleteCustomizationAndAssertItIsGone() -
deleteActionAndAssertItIsGone
-
replaceComponentOnPageAndAssertItExists
protected CxCmsComponentContainerData replaceComponentOnPageAndAssertItExists(String componentToPersonalize, int componentPosition, String pageId, String slotId, String catalog, String catalogVersion) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
getSlot
protected ContentSlotModel getSlot(String pageId, String catalog, String catalogVersion, String slotId) -
createActionOnContainerAndAssertItExists
-
assertContainerIsDeleted
-