diff --git a/src/test/java/com/backendoori/ootw/user/service/CertificateServiceTest.java b/src/test/java/com/backendoori/ootw/user/service/CertificateServiceTest.java index ace3b1fd..5f3b963b 100644 --- a/src/test/java/com/backendoori/ootw/user/service/CertificateServiceTest.java +++ b/src/test/java/com/backendoori/ootw/user/service/CertificateServiceTest.java @@ -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; @@ -173,7 +174,7 @@ void failCertificateNotFound() { ThrowingCallable certify = () -> certificateService.certify(certifyDto); // then - assertThatExceptionOfType(UserNotFoundException.class) + assertThatExceptionOfType(ExpiredCertificateException.class) .isThrownBy(certify); }