-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat #186] 질문글 삭제 API #187
Conversation
Code Coverage
|
Test Results 28 files 28 suites 14s ⏱️ Results for commit aac0f2c. ♻️ This comment has been updated with latest results. |
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.
고생하셨습니다!
작성자 유효성 검증이 없어서 추가 후 승인하겠습니다!
src/main/java/com/dnd/gongmuin/question_post/service/QuestionPostService.java
Show resolved
Hide resolved
src/main/java/com/dnd/gongmuin/question_post/service/QuestionPostService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/dnd/gongmuin/question_post/service/QuestionPostService.java
Outdated
Show resolved
Hide resolved
src/test/java/com/dnd/gongmuin/question_post/service/QuestionPostServiceTest.java
Outdated
Show resolved
Hide resolved
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.
고생하셨습니다!
테스트 코드의 네이밍을 조금 더 신경 써도 좋을 것 같아요!
} | ||
} | ||
|
||
private void validateIfQuestioner(Member member, QuestionPost questionPost){ |
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.
👍
|
||
@DisplayName("[질문글 작성자가 아닌 경우 질문글을 삭제할 수 없다.]") | ||
@Test | ||
void deleteQuestionPostFails2() { |
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.
�예외 발생 추가 케이스에 대한 테스트 코드 좋네요👍
메서드명에 테스트 행위를 담으면 길어져서 오히려 가독성이 떨어진다고 생각했습니다! DisplayName으로 나타낼 수 있으니 간결하게 네이밍해도 괜찮을 것 같아요~ |
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분
refundClosedQuestionPosts()
로 수정했습니다.