-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: 예외 관련 테스트코드 함수명 수정 #387
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
refactor: 예외 관련 테스트코드 함수명 수정 #387
Conversation
- 레이어드 아키텍쳐의 구조에 맞게, 컨트롤러 테스트가 아닌 테스트 코드에서 "응답"이라는 단어를 쓰지 않는다.
Walkthrough
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
whqtker
left a comment
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.
확인했습니다 !
Gyuhyeok99
left a comment
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.
고생하셨습니다!! 간단한 리뷰만 남겨놓았으니 승인해두겠습니다!
|
|
||
| @Test | ||
| void 대대댓글_생성_시도하면_예외_응답을_반환한다() { | ||
| void 대대댓글_생성_시도하면_예외가_발생한다() { |
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.
253번라인은 반환한다로 되어있습니다!
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.
반영했습니다~
|
|
||
| @Nested | ||
| class 예외_응답을_반환하다 { | ||
| class 예외_발생 { |
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.
이것만 예외_발생으로 되어있는데 발생한다로 통일하는 거 어떤가요?
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.
반영했습니다. 꼼꼼히 확인해주셔서 감사해요 🥹
|
|
||
| @Test | ||
| void 존재하지_않는_부모댓글로_대댓글_작성시_예외를_반환한다() { | ||
| void 존재하지_않는_부모댓글로_대댓글_작성시_예외가_빌생한다() { |
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.
앗 여기 오타가 .... 🥲
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.
으앗 엄청 열심히 봤는데 저도 놓쳤나보네요.....
관련 이슈
작업 내용
예외_응답을_반환한다였던 함수명을예외가_발생한다로 바꿉니다.레이어드 아키텍처에 따르면, 서비스 코드에서의 예외는 발생하는 것이지 "응답"되는 것이 아닙니다.
응답은 컨트롤러의 관심사입니다.