Skip to content

Commit

Permalink
fix: unit test to cover additional condition
Browse files Browse the repository at this point in the history
  • Loading branch information
akadir committed Sep 12, 2020
1 parent addf700 commit ef1f565
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public void whenCouponMinAmountIsNotLessThenCartAmountThenExpectCorrectDiscount(
Category electronic = new Category("electronic");
Product watch = new Product("watch", 100, electronic);

shoppingCartService.addProduct(watch);

assertThat(coupon.isCouponApplicable(shoppingCartService.getProducts()))
.isFalse();

Expand Down

0 comments on commit ef1f565

Please sign in to comment.