-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Test] 투표 마감, 상세 조회 단위 테스트 추가 #187
Conversation
@@ -14,15 +14,13 @@ | |||
@Service | |||
public class GetVoteDetailService { | |||
|
|||
private final VoteRepository voteJPARepository; | |||
private final VoteRepository voteRepository; |
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.
굳
|
||
closeVoteService.closeVote(voteId, requestUserId); | ||
// 분 단위까지만 비교 | ||
LocalDateTime now = LocalDateTime.now().truncatedTo(ChronoUnit.MINUTES); |
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.
dTo 바꾸시는거 어떤가요
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.
이름이 dTo잖아요 저거
|
||
// when & then | ||
assertThrows(NullPointerException.class, () -> closeVoteService.closeVote(voteId, userId)); | ||
assertThrows(NullException.class, () -> closeVoteService.closeVote(voteId, requestUserId)); |
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.
이거 repository를 when then return한 부분이 안보이는거같아요
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.
??/ㅋㅋㅋㅋㅋㅋㅋ
어떤 내용에 대한 PR인가요?
변경된 내용에 대한 전반적인 설명을 작성해주세요
변경 사항
변경된 부분에 대한 상세한 내용을 나열해주세요
무엇을 위주로 보면 좋을까요?
리뷰어가 어디를 집중적으로 보면 좋을 지 알려주세요!
관련된 이슈
closes (#144 )
테스트 방법
변경 사항에 대한 테스트 방법이나 확인 사항을 기술합니다.