Skip to content

Commit

Permalink
test(MatchingApplicationServiceTest) : 매칭을 신청했으나, 매칭되지 않은 사용자의 매칭 상태가…
Browse files Browse the repository at this point in the history
… 변경되는지 테스트
  • Loading branch information
suhyun0918 committed Jun 5, 2024
1 parent 25619e5 commit f9f4d12
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,20 @@ void applyNextMatchAndCancel() {
assertThat(result).isEqualTo(MatchingStatus.NOT_APPLIED_MATCHED.getMessage());
}

@Test
@DisplayName("매칭을 신청했으나, 매칭되지 않은 사용자의 매칭 상태가 정상적으로 변경됨")
void changeMatchingStatusIfNotMatched() {
// given
matchingApplicationService.saveParticipant(loginMember, matchingApplicationRequest);

// when
dummyGenerator.operateMatching();

// then
Member notMatchedMember = getMemberById(member.getId());
assertThat(notMatchedMember.getStatus()).isEqualTo(MatchingStatus.NOT_APPLIED_NOT_MATCHED.getMessage());
}

@Test
@DisplayName("지정 시간 외 매칭 신청시, 에러 발생")
void applyMatchIfNotValidTime() {
Expand Down

0 comments on commit f9f4d12

Please sign in to comment.