Class CouponCodeGenerationWebServicesTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.couponwebservices.test.webservices.CouponCodeGenerationWebServicesTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidtest case for occ api of "/couponcodes/{couponId}/{mediaCode}" the api retrieves the generated coupon codes for a multi-code coupon given its media code.voidvoidthe test is for occ api of "/couponservices/v2/multicodecoupon/generate/{couponId}/{batchsize}" This endpoint generates a batch of the multi-code coupon codes for a provided couponId and batch sizevoidthe test is for occ api of "/couponservices/v2/multicodecoupon/generate/{couponId}/{batchsize}" This endpoint generates a batch of the multi-code coupon codes for a provided couponId and batch sizevoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Field Details
-
OAUTH_CLIENT_ID
- See Also:
-
OAUTH_CLIENT_PASS
- See Also:
-
-
Constructor Details
-
CouponCodeGenerationWebServicesTest
public CouponCodeGenerationWebServicesTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testPutGenerateCodesWithoutAuthorization
public void testPutGenerateCodesWithoutAuthorization() -
testPutGenerateCodes
public void testPutGenerateCodes()the test is for occ api of "/couponservices/v2/multicodecoupon/generate/{couponId}/{batchsize}" This endpoint generates a batch of the multi-code coupon codes for a provided couponId and batch size
- Parameters:
batchSize-couponId-
-
testGetGeneratedCouponCodesUnauthorized
- Throws:
Exception
-
testGetGeneratedCouponCodes
test case for occ api of "/couponcodes/{couponId}/{mediaCode}" the api retrieves the generated coupon codes for a multi-code coupon given its media code.
- Parameters:
couponId-mediaCode-- Throws:
Exception
-
testGetMultiCodeCouponWithGeneratedCodes
the test is for occ api of "/couponservices/v2/multicodecoupon/generate/{couponId}/{batchsize}" This endpoint generates a batch of the multi-code coupon codes for a provided couponId and batch size
- Parameters:
batchSize-couponId- meanwhile the test also for occ api "/couponservices/v2/multicodecoupon/get/{couponId}" which retrieves a multi-code coupon for a given couponIdcouponId-- Throws:
Exception
-
shouldProvideCodeGenerationConfiguration
public void shouldProvideCodeGenerationConfiguration() -
shouldProvideCodeGenerationConfigurationSortedByNameWithDesc
public void shouldProvideCodeGenerationConfigurationSortedByNameWithDesc() -
shouldProvideCodeGenerationConfigurationPaged
public void shouldProvideCodeGenerationConfigurationPaged()
-