Skip to content
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

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

PHS00
Copy link
Contributor

@PHS00 PHS00 commented Nov 7, 2023

어떤 내용에 대한 PR인가요?

변경된 내용에 대한 전반적인 설명을 작성해주세요

변경 사항

변경된 부분에 대한 상세한 내용을 나열해주세요

  1. 투표 마감 단위 테스트 케이스 추가했습니다.
  2. 투표 생성 통합 테스트 옵션 개수 2개 미만인 케이스 추가했습니다
  3. 투표 상세 조회 단위 테스트 추가했습니다.

무엇을 위주로 보면 좋을까요?

리뷰어가 어디를 집중적으로 보면 좋을 지 알려주세요!

관련된 이슈

closes (#144 )

테스트 방법

변경 사항에 대한 테스트 방법이나 확인 사항을 기술합니다.

@PHS00 PHS00 requested review from kssumin and jinwooseok and removed request for kssumin November 7, 2023 18:19
@PHS00 PHS00 self-assigned this Nov 7, 2023
@PHS00 PHS00 added Priority:High 최우선 처리 필요 Type:Test 테스트 개발 labels Nov 7, 2023
@@ -14,15 +14,13 @@
@Service
public class GetVoteDetailService {

private final VoteRepository voteJPARepository;
private final VoteRepository voteRepository;
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dTo 바꾸시는거 어떤가요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

무슨 말씀이시죠??

Copy link
Contributor

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));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 repository를 when then return한 부분이 안보이는거같아요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나도 이렇게 했네?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??/ㅋㅋㅋㅋㅋㅋㅋ

@PHS00 PHS00 merged commit d6c6f8d into weekly Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:High 최우선 처리 필요 Type:Test 테스트 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants