Skip to content

Commit f7c45bf

Browse files
committed
test: 실패하던 내 다이어리 조회 테스트 수정
1 parent 88de81d commit f7c45bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/example/log4u/domain/user/mypage/service/MyPageServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ void getMyDiariesByCursor_returnsCorrectData() {
6565
new SliceImpl<>(diaries), null
6666
);
6767

68-
when(diaryService.getDiariesByCursor(userId, userId, cursorId, 6)).thenReturn(mockResponse);
68+
when(diaryService.getMyDiariesByCursor(userId, VisibilityType.PUBLIC, cursorId, 6)).thenReturn(mockResponse);
6969

7070
PageResponse<DiaryResponseDto> result = myPageService.getMyDiariesByCursor(userId, VisibilityType.PUBLIC,
7171
cursorId);
7272

7373
assertThat(result).isNotNull();
74-
verify(diaryService).getDiariesByCursor(userId, userId, cursorId, 6);
74+
verify(diaryService).getMyDiariesByCursor(userId, VisibilityType.PUBLIC, cursorId, 6);
7575
}
7676

7777
@DisplayName("성공 테스트 : 좋아요한 다이어리 조회")

0 commit comments

Comments
 (0)