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

refactoring - email service #84

Closed
zhyunk opened this issue May 7, 2024 · 0 comments
Closed

refactoring - email service #84

zhyunk opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@zhyunk
Copy link
Contributor

zhyunk commented May 7, 2024

Email Service에 있는 이메일 전송 메서드는 business로 가는게 맞을 것 같다는 생각이 들었다

고쳐야지 🔨

@zhyunk zhyunk changed the title refactoring refactoring - email service May 7, 2024
zhyunk added a commit that referenced this issue May 7, 2024
- 실제 발송 테스트시 만료 시간을 test/application.yml에서 가져오는 것으로 변경
- 실제 발송 테스트 파일 위치를 옮기고 리팩토링 내용에 기반하여 코드 수정
- EmailServiceTest에서 메일 발송 검증 코드를 삭제

issue key : #81, #84
zhyunk added a commit that referenced this issue May 7, 2024
1. JavaMailSender 사용 코드를 EmailUtil로 분리
2. EmailService에 위치했던 메일 전송 코드를 SignUpBusiness로 이동
3. Email 전송 메서드 수행 중 발생하는 에러 메세지에 원본 에러 메세지를 더함

issue key : #81, #84
zhyunk added a commit that referenced this issue May 7, 2024
- 실제 발송 테스트시 만료 시간을 test/application.yml에서 가져오는 것으로 변경
- 실제 발송 테스트 파일 위치를 옮기고 리팩토링 내용에 기반하여 코드 수정
- EmailServiceTest에서 메일 발송 검증 코드를 삭제

issue key : #81, #84
@zhyunk zhyunk self-assigned this May 7, 2024
zhyunk added a commit that referenced this issue May 7, 2024
@zhyunk zhyunk closed this as completed May 7, 2024
zhyunk added a commit that referenced this issue May 7, 2024
assertTrue(StringUtils.isNotBlank(authCode));
👆 이 코드로 한번에 검사하는 것 보다 두 가지 케이스로 검사한 후 실패한 케이스를 알 수 있도록 하는 게 더 좋은 것 같아서 고침

issue key : #81, #84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant