1717import com .somemore .recruitboard .dto .request .RecruitBoardLocationUpdateRequestDto ;
1818import com .somemore .recruitboard .dto .request .RecruitBoardUpdateRequestDto ;
1919import com .somemore .recruitboard .repository .RecruitBoardJpaRepository ;
20+ import com .somemore .recruitboard .repository .RecruitBoardRepository ;
2021import java .math .BigDecimal ;
2122import java .time .LocalDateTime ;
2223import java .util .UUID ;
@@ -35,6 +36,9 @@ class UpdateRecruitBoardServiceTest extends IntegrationTestSupport {
3536 @ Autowired
3637 private RecruitBoardJpaRepository recruitBoardJpaRepository ;
3738
39+ @ Autowired
40+ private RecruitBoardRepository recruitBoardRepository ;
41+
3842 @ Autowired
3943 private LocationRepository locationRepository ;
4044
@@ -78,7 +82,7 @@ void updateRecruitBoard() {
7882 newImgUrl );
7983
8084 // then
81- RecruitBoard updatedRecruitBoard = recruitBoardJpaRepository .findById (recruitBoard .getId ())
85+ RecruitBoard updatedRecruitBoard = recruitBoardRepository .findById (recruitBoard .getId ())
8286 .orElseThrow ();
8387
8488 assertThat (updatedRecruitBoard .getTitle ()).isEqualTo (dto .title ());
@@ -111,7 +115,7 @@ void updateRecruitBoardLocation() {
111115 updateRecruitBoardService .updateRecruitBoardLocation (dto , recruitBoard .getId (), centerId );
112116
113117 // then
114- RecruitBoard updateRecruitBoard = recruitBoardJpaRepository .findById (recruitBoard .getId ())
118+ RecruitBoard updateRecruitBoard = recruitBoardRepository .findById (recruitBoard .getId ())
115119 .orElseThrow ();
116120 Location updateLocation = locationRepository .findById (recruitBoard .getLocationId ())
117121 .orElseThrow ();
@@ -164,7 +168,7 @@ void updateRecruitBoardStatus() {
164168 currentDateTime );
165169
166170 // then
167- RecruitBoard findBoard = recruitBoardJpaRepository .findById (recruitBoardId ).orElseThrow ();
171+ RecruitBoard findBoard = recruitBoardRepository .findById (recruitBoardId ).orElseThrow ();
168172 assertThat (findBoard .getRecruitStatus ()).isEqualTo (newStatus );
169173 }
170174
0 commit comments