diff --git a/src/test/java/com/aliens/backend/matching/unit/service/MatchingApplicationServiceTest.java b/src/test/java/com/aliens/backend/matching/unit/service/MatchingApplicationServiceTest.java index 72b730c6..62ab3ab8 100644 --- a/src/test/java/com/aliens/backend/matching/unit/service/MatchingApplicationServiceTest.java +++ b/src/test/java/com/aliens/backend/matching/unit/service/MatchingApplicationServiceTest.java @@ -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() {