Class CouponRedemptionWebServicesTest

    • Constructor Detail

      • CouponRedemptionWebServicesTest

        public CouponRedemptionWebServicesTest()
    • 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"
        } ]