Skip to content

[TEST] 이메일 인증 관련 테스트 코드 작성#228

Merged
Jimin730 merged 9 commits into
developfrom
test/219-email-service-test
Aug 7, 2025
Merged

[TEST] 이메일 인증 관련 테스트 코드 작성#228
Jimin730 merged 9 commits into
developfrom
test/219-email-service-test

Conversation

@Jimin730

@Jimin730 Jimin730 commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

관련 Issue (필수)

주요 변경 사항 (필수)

  • MockMailConfig 제거
    • RailoApplicationTests 에 MockMailConfig @Import 어노테이션 제거
  • GreenMail 의존성 추가
    • greenMail 이 임베디드 이메일 서버로 동작
    • 실제 이메일을 보내지 않고 테스트 할 수 있도록 도움
  • EmailAuthService 테스트 코드 작성
  • MemberFindService 테스트 코드 작성
  • MemberUpdateService 테스트 코드 작성

리뷰어 참고 사항

없음

추가 정보

없음

PR 작성 체크리스트 (필수)

  • 제목이 Issue와 동일함을 확인했습니다.
  • 리뷰어를 지정했습니다.
  • 프로젝트를 연결했습니다.

@chanwonlee chanwonlee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이메일 인증 관련 테스트 코드 확인했습니다! 메일 테스트를 위한 GreenMail도 덕분에 알게 되었습니다. 고생하셨습니다!

@EndlessMilkyway EndlessMilkyway left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지민님이 작성해주신 테스트 코드를 리뷰하며 GreenMail 라이브러리를 사용할 경우 메일 서비스에 대한 테스트를 진행할 수 있다는 것을 알게되었습니다. 고생하셨습니다!

@friox friox left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이메일 서버에 대한 테스트 환경을 별도로 구축하여 진행할 수 있네요,
테스트 관련하여 많이 배워갑니다! 고생하셨습니다~ 👍👍

@Ogu1208 Ogu1208 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정말 꼼꼼하게 있을 수 있는 모든 시나리오에 대해서 테스트를 작성해주신 것 같습니다!
GreenMail도 처음 보네요. 테스트용 메일 서버라니 없는 라이브러리가 없군요..!
고생하셨습니다~ 👍

@Yunsung-Jo Yunsung-Jo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 👍

@Jimin730
Jimin730 force-pushed the test/219-email-service-test branch from bd08279 to d871158 Compare August 7, 2025 01:34
@Jimin730
Jimin730 merged commit b463e3f into develop Aug 7, 2025
3 checks passed
@Jimin730
Jimin730 deleted the test/219-email-service-test branch August 7, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[TEST] 이메일 인증 관련 테스트 코드 작성

6 participants