Skip to content

Commit

Permalink
#233 [fix] 조회 시 entity manager 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
KWY0218 committed Oct 10, 2023
1 parent c411935 commit 5f778bf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.asap.server.domain.enums.PlaceType;
import com.asap.server.domain.enums.Role;
import com.asap.server.domain.enums.TimeSlot;
import com.asap.server.repository.MeetingRepository;
import com.asap.server.service.MeetingService;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand All @@ -28,8 +27,6 @@ public class ConfirmMeetingMethodTest {
@Autowired
private MeetingService meetingService;
@Autowired
private MeetingRepository meetingRepository;
@Autowired
private EntityManager em;

@Test
Expand Down Expand Up @@ -76,7 +73,7 @@ void setConfirmDateTimeTest() {
meetingService.confirmMeeting(body, meeting.getId(), user.getId());

// then
final Meeting result = meetingRepository.findById(meeting.getId()).get();
final Meeting result = em.find(Meeting.class, meeting.getId());
assertThat(result.isConfirmedMeeting()).isTrue();
}

Expand Down

0 comments on commit 5f778bf

Please sign in to comment.