Class CouponRedemptionWebServicesTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.couponwebservices.test.webservices.CouponRedemptionWebServicesTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class CouponRedemptionWebServicesTest extends ServicelayerTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OAUTH_CLIENT_ID
static java.lang.String
OAUTH_CLIENT_PASS
-
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 CouponRedemptionWebServicesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
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
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetSingleCodeCouponRedemptionWithoutAuthorization
public void testGetSingleCodeCouponRedemptionWithoutAuthorization()
-
testGetSingleCodeCouponRedemptionUsingClientCredentials
public void testGetSingleCodeCouponRedemptionUsingClientCredentials()
-
testGetSingleCodeCouponRedemptionInvalidCouponCodeError
public 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" } ]
-
testGetSingleCodeCouponRedemptionInvalidCustomerIdError
public void testGetSingleCodeCouponRedemptionInvalidCustomerIdError()
The test should detect the fail with 1 error: errors" : [ { "message" : "Cannot find user with uid 'invalid_user", "type" : "UnknownIdentifierError" } ]
-
testGetCouponRedemptionWhenMultiCodeCouponProvidedError
public void testGetCouponRedemptionWhenMultiCodeCouponProvidedError()
The test should detect the fail with 1 error: errors" : [ { "message" : "No single code coupon was found for code [COUPON1]", "type" : "CouponNotFoundError" } ]
-
-