diff --git a/api/src/test/java/com/civilwar/boardsignal/user/presentation/UserApiControllerTest.java b/api/src/test/java/com/civilwar/boardsignal/user/presentation/UserApiControllerTest.java index 162ef4e9..9d7ec5f2 100644 --- a/api/src/test/java/com/civilwar/boardsignal/user/presentation/UserApiControllerTest.java +++ b/api/src/test/java/com/civilwar/boardsignal/user/presentation/UserApiControllerTest.java @@ -119,6 +119,8 @@ void joinUserTest() throws Exception { @DisplayName("유저의 자신의 프로필을 조회할 수 있다.") void getUserProfileTest() throws Exception { //given + given(now.get()).willReturn(LocalDateTime.of(2024, 4, 16, 0, 0, 0)); + List evaluationFixture = ReviewFixture.getEvaluationFixture(); Review review = ReviewFixture.getReviewFixture(100L, loginUser.getId(), 1L, evaluationFixture); @@ -158,6 +160,8 @@ void getUserProfileTest() throws Exception { @DisplayName("타인의 프로필을 조회할 수 있다.") void getUserProfileTest2() throws Exception { //given + given(now.get()).willReturn(LocalDateTime.of(2024, 4, 16, 0, 0, 0)); + User anotherUser = UserFixture.getUserFixture2("providerId", "testUrl"); userRepository.save(anotherUser); List evaluationFixture = ReviewFixture.getEvaluationFixture();