Class PersonalizationCmsWebservicesTest

    • Constructor Detail

      • PersonalizationCmsWebservicesTest

        public PersonalizationCmsWebservicesTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Overrides:
        setUp in class BaseWebServiceTest
        Throws:
        java.lang.Exception
      • cleanup

        public void cleanup()
      • shouldReplaceHomepageBannerComponentOnPage

        public void shouldReplaceHomepageBannerComponentOnPage()
                                                        throws java.io.IOException,
                                                               javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • shouldReplaceHomepageBannerComponentOnPageTemplate

        public void shouldReplaceHomepageBannerComponentOnPageTemplate()
                                                                throws java.io.IOException,
                                                                       javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • shouldAddAndRemovePersonalizationOnComponent

        public void shouldAddAndRemovePersonalizationOnComponent()
                                                          throws java.io.IOException,
                                                                 javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • shouldAdd1ActionAndRemoveVariation

        public void shouldAdd1ActionAndRemoveVariation()
                                                throws java.io.IOException,
                                                       javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • shouldAdd1ActionAndRemoveCustomization

        public void shouldAdd1ActionAndRemoveCustomization()
                                                    throws java.io.IOException,
                                                           javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • shouldAdd2AndRemove1Action

        public void shouldAdd2AndRemove1Action()
                                        throws java.io.IOException,
                                               javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.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 java.lang.Integer getCustomizationRank​(CustomizationListWsDTO customizations,
                                                         java.lang.String customizationCode)
      • deleteVariationAndAssertItIsGone

        protected void deleteVariationAndAssertItIsGone()
      • deleteCustomizationAndAssertItIsGone

        protected void deleteCustomizationAndAssertItIsGone()
      • deleteActionAndAssertItIsGone

        protected void deleteActionAndAssertItIsGone​(java.lang.String actionCode1)
      • replaceComponentOnPageAndAssertItExists

        protected CxCmsComponentContainerData replaceComponentOnPageAndAssertItExists​(java.lang.String componentToPersonalize,
                                                                                      int componentPosition,
                                                                                      java.lang.String pageId,
                                                                                      java.lang.String slotId,
                                                                                      java.lang.String catalog,
                                                                                      java.lang.String catalogVersion)
                                                                               throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • getSlot

        protected ContentSlotModel getSlot​(java.lang.String pageId,
                                           java.lang.String catalog,
                                           java.lang.String catalogVersion,
                                           java.lang.String slotId)
      • createActionOnContainerAndAssertItExists

        protected void createActionOnContainerAndAssertItExists​(java.lang.String actionCode,
                                                                java.lang.String componentId,
                                                                java.lang.String containerUid)
      • assertContainerIsDeleted

        protected void assertContainerIsDeleted​(java.lang.String containerUid)