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
@IntegrationTest public class PersonalizationCmsWebservicesTest extends BaseWebServiceTest
-
-
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, VERSION
-
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 PersonalizationCmsWebservicesTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.personalizationwebservices.BaseWebServiceTest
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, unmarshallResult
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, 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
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Overrides:
setUp
in classBaseWebServiceTest
- 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)
-
-