Skip to content

Commit

Permalink
[FIX] Feign Path 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
CokeLee777 committed Dec 4, 2023
1 parent 870da90 commit 99750fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@FeignClient(name = "productServiceClient", url = "${endpoint.product-service}")
public interface ProductServiceClient {

@GetMapping("/clients/post-image/products")
@GetMapping("/clients/products/post-image")
ResponseEntity<List<ProductInfoResponse>> getProductInfos(
@RequestParam(name = "id") List<Long> productIds);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
@FeignClient(name = "promotionServiceClient", url = "${endpoint.promotion-service}")
public interface PromotionServiceClient {

@GetMapping("/clients/coupons")
@GetMapping("/clients/coupons/coupon-existence")
ResponseEntity<List<CouponForProductResponse>> getCouponsForProduct(
@RequestHeader(name = "memberId") Long memberId,
@RequestParam(name = "type") String couponType,
@RequestParam(name = "productIds") List<Long> productIds);
}
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void getPostDetailWithAuth() throws Exception {
.price(10000)
.build())));

Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, "product", List.of(101L)))
Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, List.of(101L)))
.thenReturn(
ResponseEntity.ok(
List.of(
Expand Down Expand Up @@ -295,7 +295,7 @@ void getPostDetailWithoutAuth() throws Exception {
.price(10000)
.build())));

Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, "product", List.of(101L)))
Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, List.of(101L)))
.thenReturn(ResponseEntity.ok(List.of()));

// when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void findDetailByIdWithIsFollowingWithAuth() {
.price(10000)
.build())));

Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, "product", List.of(101L)))
Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, List.of(101L)))
.thenReturn(
ResponseEntity.ok(
List.of(
Expand Down Expand Up @@ -259,7 +259,7 @@ void findDetailByIdWithIsFollowingWithoutAuth() {
.price(10000)
.build())));

Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, "product", List.of(101L)))
Mockito.when(promotionServiceClient.getCouponsForProduct(memberId, List.of(101L)))
.thenReturn(ResponseEntity.ok(List.of()));

// when
Expand Down

0 comments on commit 99750fc

Please sign in to comment.