@IntegrationTest public class CxPromotionsQueryIntegrationTest extends 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, CUSTOMIZATION_ENDPOINT, FIELDS, INCORRECT_ID, NON_EXISTINGACTION, NONEXISTING_CUSTOMIZATION, NONEXISTING_VARIATION, SEGMENT, SEGMENT_ENDPOINT, TRIGGER, TRIGGER_ENDPOINT, VARIATION, VARIATION_ENDPOINT, VERSIONimportServicejaloSession| Constructor and Description |
|---|
CxPromotionsQueryIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected PromotionSourceRuleModel |
getPromotionRule(java.lang.String code) |
void |
getPromotionsPermissionsCheck() |
protected Response |
getPromotionsRESTRequest(java.lang.String user,
java.lang.String pwd) |
void |
getWithInvalidCatalog() |
void |
getWithInvalidCatalogVersion() |
void |
getWithInvalidRequest() |
void |
getWithValidCatalogVersion() |
protected void |
publishPromotions(java.lang.String... codes) |
void |
setUp() |
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, unmarshallResultcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
setUp in class BaseWebServiceTestjava.lang.Exceptionprotected void publishPromotions(java.lang.String... codes)
throws RuleEngineServiceException
RuleEngineServiceExceptionprotected PromotionSourceRuleModel getPromotionRule(java.lang.String code)
public void getWithInvalidRequest()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic void getWithValidCatalogVersion()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic void getPromotionsPermissionsCheck()
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void getWithInvalidCatalogVersion()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionpublic void getWithInvalidCatalog()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response getPromotionsRESTRequest(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionCopyright © 2018 SAP SE. All Rights Reserved.