Skip to content

Commit

Permalink
Merge branch 'main' of github.com:KBTG-Kampus-ClassNest-SE-Java/works…
Browse files Browse the repository at this point in the history
…hopb2-group-1
  • Loading branch information
Patpum Hakaew authored and Patpum Hakaew committed Mar 31, 2024
2 parents f99a95b + 221c9d1 commit 650fd4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.kampus.kbazaar.promotion;

import com.kampus.kbazaar.cart.CartRepository;
import com.kampus.kbazaar.cart.CartResponse;
import com.kampus.kbazaar.cartitem.CartItem;
import com.kampus.kbazaar.cartitem.CartItemRepository;
Expand All @@ -22,7 +21,6 @@ public class PromotionService {
public PromotionService(
PromotionRepository promotionRepository,
CartItemRepository cartItemRepository,
CartRepository cartRepository,
CartItemService cartItemService) {
this.promotionRepository = promotionRepository;
this.cartItemRepository = cartItemRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ void shouldAppplyPromotionToTheRightProduct() {
// Mock repository method returning empty optional
PromotionService productService =
new PromotionService(
promotionRepository,
mockCartItemRepository,
mockCartRepository,
mockCartItemService);
promotionRepository, mockCartItemRepository, mockCartItemService);

Long promotionId = 1L;
String code = "SUMMER50";
Expand Down

0 comments on commit 650fd4d

Please sign in to comment.