Skip to content

Commit

Permalink
fix : 누락된 mocking 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kkangh00n committed Apr 16, 2024
1 parent 6f3657b commit ea68a8c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReviewEvaluation> evaluationFixture = ReviewFixture.getEvaluationFixture();
Review review = ReviewFixture.getReviewFixture(100L, loginUser.getId(), 1L,
evaluationFixture);
Expand Down Expand Up @@ -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<ReviewEvaluation> evaluationFixture = ReviewFixture.getEvaluationFixture();
Expand Down

0 comments on commit ea68a8c

Please sign in to comment.