Skip to content

Commit

Permalink
test: 도서와 연관된 리뷰 조회 아이디 필드 추가로 인한 테스트 수정 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwooo committed May 28, 2024
1 parent d3e697e commit d54eb4b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void findBookReviews() throws Exception {
.mapToObj(i -> ReviewWithRatingResponse.builder()
.reviewId(i)
.ratingId(i)
.creatorId(i)
.username("작성자 " + i)
.profileImage("http://www.profile-image.com/" + i)
.reviewContent("리뷰 내용 " + i)
Expand Down Expand Up @@ -114,6 +115,8 @@ void findBookReviews() throws Exception {
.description("리뷰 ID"),
fieldWithPath("data.content[].ratingId").type(JsonFieldType.NUMBER)
.description("별점 ID"),
fieldWithPath("data.content[].creatorId").type(JsonFieldType.NUMBER)
.description("작성자 유저 ID"),
fieldWithPath("data.content[].username").type(JsonFieldType.STRING)
.description("작성자 이름"),
fieldWithPath("data.content[].profileImage").type(JsonFieldType.STRING)
Expand Down

0 comments on commit d54eb4b

Please sign in to comment.