Skip to content

Commit

Permalink
fix : 통과하지 않는 테스트를 통과시킨다
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Mar 12, 2024
1 parent f26fed7 commit 53ae503
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.blackcompany.eeos.target.application.service;

import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.when;

import com.blackcompany.eeos.member.application.model.ActiveStatus;
Expand Down Expand Up @@ -63,7 +62,7 @@ void find_attend_info_by_attend_status() {
AttendEntity 바다_참석 =
com.blackcompany.eeos.target.fixture.AttendFixture.참석대상자_엔티티(2L, AttendStatus.ATTEND);

doNothing().when(programRepository).existsById(programId);
when(programRepository.existsById(programId)).thenReturn(Boolean.TRUE);
when(attendRepository.findAllByProgramIdAndStatus(programId, AttendStatus.find(attendStatus)))
.thenReturn(List.of(수민_참석, 바다_참석));
when(memberRepository.findMembersByIds(List.of(수민_참석.getMemberId(), 바다_참석.getMemberId())))
Expand Down

0 comments on commit 53ae503

Please sign in to comment.