Skip to content

Private Method 테스트 #45

Answered by queuedq
junwha asked this question in Q&A
Apr 21, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

DataLoader는 #43 에서 완전히 바뀔 예정이니 지금 테스트를 작성하지 않아도 됩니다.
어떤 경우에도 private method는 테스트하면 안 되며, infra 레이어에서 DB에 접근하는 등 바깥 세상과 소통하는 클래스는 유닛 테스트가 아닌 integration 테스트를 진행해야 합니다.
다만 DataLoader는 유닛 테스트가 가능한 유틸리티 클래스의 형태로 리팩토링할 것입니다.

Replies: 2 comments 2 replies

Comment options

junwha
Apr 21, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@junwha
Comment options

junwha Apr 21, 2021
Maintainer Author

@queuedq
Comment options

queuedq Apr 24, 2021
Collaborator

Answer selected by junwha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants