-
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
[fix #190] 답변자가 스스로에게 채팅 요청 보낼 수 없도록 수정 #192
Conversation
Code Coverage
|
Test Results 28 files 28 suites 14s ⏱️ Results for commit a672fd5. ♻️ 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.
빠른 QA 수정 수고하셨습니다!
if (!answerRepository.existsByQuestionPostIdAndMember(questionPostId, answerer)) { | ||
throw new ValidationException(ChatInquiryErrorCode.NOT_EXISTS_ANSWERER); | ||
} | ||
if (Objects.equals(answerer.getId(), inquirerId)) { |
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.
필수적인건 아니지만 2가지 메서드로 분리해도 좋을 것 같아요!
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.
넵 분리했습니다!
@@ -173,6 +172,32 @@ void createChatInquiry_fails2() { | |||
.hasMessageContaining(ChatInquiryErrorCode.NOT_EXISTS_ANSWERER.getMessage()); | |||
} | |||
|
|||
@DisplayName("[답변자는 스스로에게 채팅 요청을 할 수 없다.]") | |||
@Test | |||
void createChatInquiry_fails3() { |
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.
실패 테스트 케이스 작성 👍 👍
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분