-
Notifications
You must be signed in to change notification settings - Fork 0
UserService 인터페이스 분리 및 역할 기반 리팩터링 #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| SignUpResponse response = userSignUpService.signUp(request); | ||
|
|
||
| // then | ||
| assertNotNull(response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 방식은 첫 줄에서 실패하면 그대로 테스트가 끝나서 assertAll로 묶어서 한 번에 테스트 하는 방향도 추천드려요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋은 의견 감사합니다!
저는 테스트가 성공하는 케이스니까, 처음 실패하면 바로 종료돼도 괜찮다고 생각했었는데요, 말씀해주신 것처럼 전체 검증을 묶어서 실행하면 더 많은 정보를 한 번에 확인할 수 있어서 훨씬 좋은 방법인 것 같네요!
assertAll로 묶어서 테스트 작성하는 것으로 수정해보겠습니다!
… 강화, when -> given, verify -> then 스타일로 변경하여 BDD 가독성 향상
📌 Issue
🧐 현재 상황
🎯 목표
🛠 작업 내용
작업 할 내용을 입력해주세요.
서비스 분리
테스트 수정
🚀 기타 사항