Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📄 Description
📌 구현 내용
✅ PR 포인트
ReflectionTestUtils를 활용해 studyRoomService의 connectionCodeRepository를 테스트를 위해 임시로 Mock 객체로 교체하였습니다. '@Autowired로 주입된 studyRoomService'의 내부 필드를 테스트 목적으로 수정할 수 있었습니다. (생성자 주입이나 Setter 주입을 통해 의존성을 교체할 수 있다고 합니다. 또는 추후에 설계를 바꿔 Mock을 사용하지 않는 방향으로 구현할 수 있을지 고민해봐야겠습니다.)