Class CxPromotionsActionsWebServiceTest
- 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.personalizationpromotionsweb.CxPromotionsActionsWebServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class CxPromotionsActionsWebServiceTest 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 CxPromotionsActionsWebServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAutomaticPromotionAction()
void
createExistingPromotionAction()
void
createPromotionAction()
void
deleteNonExistingPromotionAction()
void
deletePromotionAction()
void
deletePromotionActionFromUnknownCustomization()
void
deletePromotionActionFromUnknownVariation()
void
getActionByIdFromInvalidCustomizationTest()
void
getActionByIdFromInvalidVariationTest()
void
getAllActionsForVariationTest()
void
getNonexistingActionByIdTest()
void
getPromotionActionForAdmin()
void
getPromotionActionForCmsManager()
void
setUp()
void
updateNonExistingPromotionActionWithInconsistentCode()
void
updatePromotionAction()
void
updatePromotionActionTypeWithOtherType()
void
updatePromotionActionTypeWithUnknownType()
void
updatePromotionActionWithInconsistentCode()
-
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
-
createPromotionAction
public void createPromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
getPromotionActionForAdmin
public void getPromotionActionForAdmin() throws java.io.IOException
- Throws:
java.io.IOException
-
getPromotionActionForCmsManager
public void getPromotionActionForCmsManager() throws java.io.IOException
- Throws:
java.io.IOException
-
createAutomaticPromotionAction
public void createAutomaticPromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
createExistingPromotionAction
public void createExistingPromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
updatePromotionActionTypeWithOtherType
public void updatePromotionActionTypeWithOtherType() throws java.io.IOException
- Throws:
java.io.IOException
-
updatePromotionActionTypeWithUnknownType
public void updatePromotionActionTypeWithUnknownType() throws java.io.IOException
- Throws:
java.io.IOException
-
updatePromotionAction
public void updatePromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
updatePromotionActionWithInconsistentCode
public void updatePromotionActionWithInconsistentCode() throws java.io.IOException
- Throws:
java.io.IOException
-
updateNonExistingPromotionActionWithInconsistentCode
public void updateNonExistingPromotionActionWithInconsistentCode() throws java.io.IOException
- Throws:
java.io.IOException
-
getAllActionsForVariationTest
public void getAllActionsForVariationTest()
-
getNonexistingActionByIdTest
public void getNonexistingActionByIdTest()
-
getActionByIdFromInvalidVariationTest
public void getActionByIdFromInvalidVariationTest()
-
getActionByIdFromInvalidCustomizationTest
public void getActionByIdFromInvalidCustomizationTest()
-
deletePromotionAction
public void deletePromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
deleteNonExistingPromotionAction
public void deleteNonExistingPromotionAction() throws java.io.IOException
- Throws:
java.io.IOException
-
deletePromotionActionFromUnknownVariation
public void deletePromotionActionFromUnknownVariation() throws java.io.IOException
- Throws:
java.io.IOException
-
deletePromotionActionFromUnknownCustomization
public void deletePromotionActionFromUnknownCustomization() throws java.io.IOException
- Throws:
java.io.IOException
-
-