Skip to content

Commit

Permalink
test: 인증 코드 만료 예외 클래스 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ASak1104 committed Jan 18, 2024
1 parent fec4086 commit f5640ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.backendoori.ootw.user.dto.CertifyDto;
import com.backendoori.ootw.user.dto.SendCodeDto;
import com.backendoori.ootw.user.exception.AlreadyCertifiedUserException;
import com.backendoori.ootw.user.exception.ExpiredCertificateException;
import com.backendoori.ootw.user.exception.IncorrectCertificateException;
import com.backendoori.ootw.user.repository.CertificateRedisRepository;
import com.backendoori.ootw.user.repository.UserRepository;
Expand Down Expand Up @@ -173,7 +174,7 @@ void failCertificateNotFound() {
ThrowingCallable certify = () -> certificateService.certify(certifyDto);

// then
assertThatExceptionOfType(UserNotFoundException.class)
assertThatExceptionOfType(ExpiredCertificateException.class)
.isThrownBy(certify);
}

Expand Down

0 comments on commit f5640ed

Please sign in to comment.