Class DiscountServiceTest

    • Constructor Detail

      • DiscountServiceTest

        public DiscountServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Creates the core data, and 4 discounts.
        Throws:
        java.lang.Exception
      • testGetDiscount

        public void testGetDiscount()
        Tries to search the discount with code:
        • successful with "totally_free",
        • caught UnknownIdentifierException with "No_Such_Discount",
        • found two discounts, that both contains "percent".
      • shouldGetDiscountInfo

        public void shouldGetDiscountInfo()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception