Class CxPromotionsQueryIntegrationTest
- 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.queries.CxPromotionsQueryIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class CxPromotionsQueryIntegrationTest 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, CUSTOMIZATION_ENDPOINT, 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 CxPromotionsQueryIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PromotionSourceRuleModel
getPromotionRule(java.lang.String code)
void
getPromotionsPermissionsCheck()
protected javax.ws.rs.core.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()
-
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
-
publishPromotions
protected void publishPromotions(java.lang.String... codes) throws RuleEngineServiceException
- Throws:
RuleEngineServiceException
-
getPromotionRule
protected PromotionSourceRuleModel getPromotionRule(java.lang.String code)
-
getWithInvalidRequest
public void getWithInvalidRequest() throws java.io.IOException, javax.xml.bind.JAXBException
- Throws:
java.io.IOException
javax.xml.bind.JAXBException
-
getWithValidCatalogVersion
public void getWithValidCatalogVersion() throws java.io.IOException, javax.xml.bind.JAXBException
- Throws:
java.io.IOException
javax.xml.bind.JAXBException
-
getPromotionsPermissionsCheck
public void getPromotionsPermissionsCheck() throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
getWithInvalidCatalogVersion
public void getWithInvalidCatalogVersion() throws java.io.IOException, javax.xml.bind.JAXBException
- Throws:
java.io.IOException
javax.xml.bind.JAXBException
-
getWithInvalidCatalog
public void getWithInvalidCatalog() throws java.io.IOException, javax.xml.bind.JAXBException
- Throws:
java.io.IOException
javax.xml.bind.JAXBException
-
getPromotionsRESTRequest
protected javax.ws.rs.core.Response getPromotionsRESTRequest(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-