Class SingleCodeCouponWebServicesTest
- 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
-
- de.hybris.platform.couponwebservices.test.webservices.SingleCodeCouponWebServicesTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class SingleCodeCouponWebServicesTest extends AbstractCouponWebServicesTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.couponwebservices.test.webservices.AbstractCouponWebServicesTest
couponCodeGenerationService, couponWsUtils, OAUTH_CLIENT_ID, OAUTH_CLIENT_PASS, wsRequestBuilder, 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 SingleCodeCouponWebServicesTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.couponwebservices.test.webservices.AbstractCouponWebServicesTest
getCouponCodeGenerationService, getCouponWsUtils, testPutEmptyCouponStatusWsDTO, testPutInvalidCouponStatusWsDTO, updateCouponStatus, updateCouponStatusWithoutAuthorization, validateCouponUsingClientCredentials, validateCouponWithCustomerIdUsingClientCredentials, validateCouponWithoutAuthorization, validateMultiCodeCouponUsingClientCredentials
-
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
- Throws:
java.lang.Exception
-
testGetSingleCodeCouponsWithoutAuthorization
public void testGetSingleCodeCouponsWithoutAuthorization()
-
shouldReturnSingleCodeCouponsSortedByNameWithDescOrder
public void shouldReturnSingleCodeCouponsSortedByNameWithDescOrder()
-
shouldReturnSingleCodeCouponsPaged
public void shouldReturnSingleCodeCouponsPaged()
-
shouldReturnSingleCodeCoupons
public void shouldReturnSingleCodeCoupons()
-
testGetSingleCodeCouponUsingClientCredentials
public void testGetSingleCodeCouponUsingClientCredentials()
-
testPostSingleCodeCouponWsDTO
public void testPostSingleCodeCouponWsDTO()
-
testPostEmptySingleCodeCouponWsDTO
public void testPostEmptySingleCodeCouponWsDTO()
The test should detect the fail with 1 error: errors" : [ { "message" : "This field is required.", "reason" : "missing", "subject" : "couponId", "subjectType" : "parameter", "type" : "ValidationError" } ]
-
testPostSingleCodeCouponWithDatesWsDTO
public void testPostSingleCodeCouponWithDatesWsDTO()
-
testPostSingleCodeCouponWithInconsistentDatesWsDTO
public void testPostSingleCodeCouponWithInconsistentDatesWsDTO()
-
putSingleCodeCouponWsDTO
protected javax.ws.rs.core.Response putSingleCodeCouponWsDTO(java.lang.String couponId, java.lang.String couponName, java.lang.String startDateVal, java.lang.String endDateVal, java.lang.Integer maxRedemptionsPerCustomer, java.lang.Integer maxTotalRedemptions)
-
testPutSingleCodeCouponWsDTO
public void testPutSingleCodeCouponWsDTO()
-
testPutSingleCodeActiveCouponWsDTO
public void testPutSingleCodeActiveCouponWsDTO()
-
testPutEmptySingleCodeCouponWsDTO
public void testPutEmptySingleCodeCouponWsDTO()
The test should detect the fail with 1 error: errors" : [ { "message" : "This field is required.", "reason" : "missing", "subject" : "couponId", "subjectType" : "parameter", "type" : "ValidationError" } ]
-
testPutInvalidSingleCodeCouponWsDTO
public void testPutInvalidSingleCodeCouponWsDTO()
-
testPutInvalidSingleCodeCouponWsDTO2
public void testPutInvalidSingleCodeCouponWsDTO2()
-
testPutSingleCodeCouponWithInvalidDatesWsDTO
public void testPutSingleCodeCouponWithInvalidDatesWsDTO()
-
testPutSingleCodeCouponWithDatesWsDTO
public void testPutSingleCodeCouponWithDatesWsDTO()
-
testPutSingleCodeCouponWithInconsistentDatesWsDTO
public void testPutSingleCodeCouponWithInconsistentDatesWsDTO()
-
testPutCouponStatusWithoutAuthorization
public void testPutCouponStatusWithoutAuthorization()
-
testPutCouponStatusWsDTO1
public void testPutCouponStatusWsDTO1()
-
testPutCouponStatusWsDTO2
public void testPutCouponStatusWsDTO2()
-
testPutEmptyStatusCouponStatusWsDTO
public void testPutEmptyStatusCouponStatusWsDTO()
-
testValidateSingleCodeCouponWithoutAuthorization
public void testValidateSingleCodeCouponWithoutAuthorization()
-
testValidateSingleCodeCouponUsingClientCredentials
public void testValidateSingleCodeCouponUsingClientCredentials()
-
testValidateSingleCodeCouponWhenCouponIsInvalid
public void testValidateSingleCodeCouponWhenCouponIsInvalid()
-
testValidateSingleCodeCouponWithCustomerId
public void testValidateSingleCodeCouponWithCustomerId()
-
testValidateSingleCodeCouponWithCustomerIdWhenCouponIsNotValid
public void testValidateSingleCodeCouponWithCustomerIdWhenCouponIsNotValid()
-
testValidateSingleCodeCouponWhenCouponCodeIsNotFound
public void testValidateSingleCodeCouponWhenCouponCodeIsNotFound()
-
-