Class SingleCodeCouponWebServicesTest

    • Constructor Detail

      • SingleCodeCouponWebServicesTest

        public SingleCodeCouponWebServicesTest()
    • 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()