File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/org/festimate/team/domain/matching/service/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3333import static org .festimate .team .common .mock .MockFactory .*;
3434import static org .mockito .Mockito .when ;
3535
36- public class MatchingServiceImplTest {
36+ class MatchingServiceImplTest {
3737 @ Mock
3838 private MatchingRepository matchingRepository ;
3939
@@ -263,7 +263,7 @@ void getMatchingDetail_invalidFestival_throwsException() {
263263 when (userService .getUserByIdOrThrow (user .getUserId ())).thenReturn (user );
264264 when (festivalService .getFestivalByIdOrThrow (requestedFestival .getFestivalId ())).thenReturn (requestedFestival );
265265 when (participantService .getParticipantOrThrow (user , requestedFestival )).thenReturn (participant );
266- when (matchingRepository .findByMatchingId (1L )).thenReturn (mismatchedMatching );
266+ when (matchingRepository .findByMatchingId (1L )).thenReturn (Optional . of ( mismatchedMatching ) );
267267
268268 // when & then
269269 assertThatThrownBy (() -> matchingService .getMatchingDetail (user .getUserId (), requestedFestival .getFestivalId (), 1L ))
You can’t perform that action at this time.
0 commit comments