@IntegrationTest public class CouponRedemptionWebServicesTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
static String |
OAUTH_CLIENT_ID |
static String |
OAUTH_CLIENT_PASS |
defaultLanguage, jaloSession| Constructor and Description |
|---|
CouponRedemptionWebServicesTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testGetCouponRedemptionWhenMultiCodeCouponProvidedError()
The test should detect the fail with 1 error:
errors" : [ {
"message" : "No single code coupon was found for code [COUPON1]",
"type" : "CouponNotFoundError"
} ]
|
void |
testGetSingleCodeCouponRedemptionInvalidCouponCodeError()
The test should detect the fail with 1 error:
errors" : [ {
"message" : "No single code coupon found for invalid couponId [INVALID_TEST_COUPON1]",
"type" : "CouponNotFoundError"
} ]
|
void |
testGetSingleCodeCouponRedemptionInvalidCustomerIdError()
The test should detect the fail with 1 error:
errors" : [ {
"message" : "Cannot find user with uid 'invalid_user",
"type" : "UnknownIdentifierError"
} ]
|
void |
testGetSingleCodeCouponRedemptionUsingClientCredentials() |
void |
testGetSingleCodeCouponRedemptionWithoutAuthorization() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String OAUTH_CLIENT_ID
public static final String OAUTH_CLIENT_PASS
public void testGetSingleCodeCouponRedemptionWithoutAuthorization()
public void testGetSingleCodeCouponRedemptionUsingClientCredentials()
public void testGetSingleCodeCouponRedemptionInvalidCouponCodeError()
public void testGetSingleCodeCouponRedemptionInvalidCustomerIdError()
public void testGetCouponRedemptionWhenMultiCodeCouponProvidedError()
Copyright © 2017 SAP SE. All Rights Reserved.