Class AbstractCouponWebServicesTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.couponwebservices.test.webservices.AbstractCouponWebServicesTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
MultiCodeCouponWebServicesTest
,SingleCodeCouponWebServicesTest
public abstract class AbstractCouponWebServicesTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description protected CouponCodeGenerationService
couponCodeGenerationService
protected CouponWsUtils
couponWsUtils
static java.lang.String
OAUTH_CLIENT_ID
static java.lang.String
OAUTH_CLIENT_PASS
protected WsRequestBuilder
wsRequestBuilder
protected WsSecuredRequestBuilder
wsSecuredRequestBuilder
-
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 AbstractCouponWebServicesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CouponCodeGenerationService
getCouponCodeGenerationService()
protected CouponWsUtils
getCouponWsUtils()
void
testPutEmptyCouponStatusWsDTO()
void
testPutInvalidCouponStatusWsDTO()
protected javax.ws.rs.core.Response
updateCouponStatus(java.lang.String couponId, java.lang.Boolean active)
protected javax.ws.rs.core.Response
updateCouponStatusWithoutAuthorization(java.lang.String couponId, java.lang.Boolean active)
protected javax.ws.rs.core.Response
validateCouponUsingClientCredentials(java.lang.String couponId)
protected javax.ws.rs.core.Response
validateCouponWithCustomerIdUsingClientCredentials(java.lang.String couponId, java.lang.String customerId)
protected javax.ws.rs.core.Response
validateCouponWithoutAuthorization(java.lang.String couponId)
protected javax.ws.rs.core.Response
validateMultiCodeCouponUsingClientCredentials(java.lang.String couponId)
-
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
-
-
-
-
Field Detail
-
OAUTH_CLIENT_ID
public static final java.lang.String OAUTH_CLIENT_ID
- See Also:
- Constant Field Values
-
OAUTH_CLIENT_PASS
public static final java.lang.String OAUTH_CLIENT_PASS
- See Also:
- Constant Field Values
-
wsRequestBuilder
protected WsRequestBuilder wsRequestBuilder
-
wsSecuredRequestBuilder
protected WsSecuredRequestBuilder wsSecuredRequestBuilder
-
couponWsUtils
protected CouponWsUtils couponWsUtils
-
couponCodeGenerationService
protected CouponCodeGenerationService couponCodeGenerationService
-
-
Method Detail
-
updateCouponStatus
protected javax.ws.rs.core.Response updateCouponStatus(java.lang.String couponId, java.lang.Boolean active)
-
updateCouponStatusWithoutAuthorization
protected javax.ws.rs.core.Response updateCouponStatusWithoutAuthorization(java.lang.String couponId, java.lang.Boolean active)
-
testPutEmptyCouponStatusWsDTO
public void testPutEmptyCouponStatusWsDTO()
-
testPutInvalidCouponStatusWsDTO
public void testPutInvalidCouponStatusWsDTO()
-
validateCouponWithoutAuthorization
protected javax.ws.rs.core.Response validateCouponWithoutAuthorization(java.lang.String couponId)
-
validateMultiCodeCouponUsingClientCredentials
protected javax.ws.rs.core.Response validateMultiCodeCouponUsingClientCredentials(java.lang.String couponId)
-
validateCouponUsingClientCredentials
protected javax.ws.rs.core.Response validateCouponUsingClientCredentials(java.lang.String couponId)
-
validateCouponWithCustomerIdUsingClientCredentials
protected javax.ws.rs.core.Response validateCouponWithCustomerIdUsingClientCredentials(java.lang.String couponId, java.lang.String customerId)
-
getCouponWsUtils
protected CouponWsUtils getCouponWsUtils()
-
getCouponCodeGenerationService
protected CouponCodeGenerationService getCouponCodeGenerationService()
-
-