You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntegrationTest를 하는데, @test 와 @transactional Annotation을 사용하였습니다. 그런데, mockMvc로 얻은 출력 결과가 postman을 통해 얻은 결과와 달랐습니다. 원인을 몰라서 헤매다가 @transactional annotation을 지웠더니 정상적으로 동작하였습니다. 혹시 @transactional이 mockMvc의 결과에 영향을 주는 것일까요?
아래가 코드입니다.
The text was updated successfully, but these errors were encountered:
요약
@transactional 이 Test 결과에 왜 영향을 주는지 궁금합니다.
상황
IntegrationTest를 하는데, @test 와 @transactional Annotation을 사용하였습니다. 그런데, mockMvc로 얻은 출력 결과가 postman을 통해 얻은 결과와 달랐습니다. 원인을 몰라서 헤매다가 @transactional annotation을 지웠더니 정상적으로 동작하였습니다. 혹시 @transactional이 mockMvc의 결과에 영향을 주는 것일까요?
아래가 코드입니다.
The text was updated successfully, but these errors were encountered: