Skip to content

Commit

Permalink
refactor: 내가 쓴 리뷰 목록 응답에서 member id 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
skylar1220 committed Jan 5, 2025
1 parent 13c10ed commit de17b00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.List;

public record WrittenReviewsResponse(
long memberId,
List<WrittenReviewElementResponse> reviews,
long lastReviewId,
boolean isLastPage
Expand Down
4 changes: 1 addition & 3 deletions backend/src/test/java/reviewme/api/ReviewApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ class ReviewApiTest extends ApiTest {
new WrittenReviewElementResponse(2L, "테드2", "리뷰미", LocalDate.of(2024, 8, 1), "(리뷰 미리보기 2)",
List.of(new ReviewCategoryResponse(2L, "카테고리 2")))
);
WrittenReviewsResponse response = new WrittenReviewsResponse(
1L, writtenReviews, 1L, true);
WrittenReviewsResponse response = new WrittenReviewsResponse(writtenReviews, 1L, true);
BDDMockito.given(reviewListLookupService.getWrittenReviews(anyLong(), anyInt()))
.willReturn(response);

Expand All @@ -367,7 +366,6 @@ class ReviewApiTest extends ApiTest {
};

FieldDescriptor[] responseFieldDescriptors = {
fieldWithPath("memberId").description("회원 ID"),
fieldWithPath("lastReviewId").description("페이지의 마지막 리뷰 ID"),
fieldWithPath("isLastPage").description("마지막 페이지 여부"),

Expand Down

0 comments on commit de17b00

Please sign in to comment.