From 53ae5031adb961866822f815bf44bf2b34eb2756 Mon Sep 17 00:00:00 2001 From: kssumin <201566@jnu.ac.kr> Date: Tue, 12 Mar 2024 19:50:32 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=86=B5=EA=B3=BC=ED=95=98=EC=A7=80?= =?UTF-8?q?=20=EC=95=8A=EB=8A=94=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=A5=BC=20?= =?UTF-8?q?=ED=86=B5=EA=B3=BC=EC=8B=9C=ED=82=A8=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eeos/target/application/service/AttendServiceTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeos/src/test/java/com/blackcompany/eeos/target/application/service/AttendServiceTest.java b/eeos/src/test/java/com/blackcompany/eeos/target/application/service/AttendServiceTest.java index f5089f00..97336477 100644 --- a/eeos/src/test/java/com/blackcompany/eeos/target/application/service/AttendServiceTest.java +++ b/eeos/src/test/java/com/blackcompany/eeos/target/application/service/AttendServiceTest.java @@ -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; @@ -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())))