이민규 Seminar1 과제 (청강생) #66
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
청강생이라 늦었지만 제출해봅니다... 시간이 날 때 리뷰해주시면 감사하겠습니다 (_ _)
UserArgumentResolver에서UserEntity를 찾고User로 변환하여 반환해주는 바람에PlaylistLikeService.create등에서 User를 다시 검색해야 하는데, 이렇게 하는 게 일반적인 방법인가요?? 앞서 찾은UserEntity를 재활용하는 방법이 없을지 궁금합니다.ObjectMapper로 반환되는 문자열을 객체로 재조립하여 Service Test에서와 동일한 방식으로 값을 검증하였는데, 이렇게 하면 중복되는 테스트를 작성하는 것 같아서요. 혹시 Integration Test를 하는 Best practice가 있다면 추천해주실 수 있을까요?