Example #1
0
 @Test
 public void testDiscountMessage() {
   Assert.assertTrue(
       customerDiscount
           .discountMessage()
           .equals("\tMembership Discount: " + customerDiscount.discount() * 100 + "%\n"));
 }
Example #2
0
 @Test
 public void testDiscount() {
   Assert.assertTrue(customerDiscount.discount() == 0.2f);
 }