Skip to content

[TEST] AuthService 테스트 코드 작성#222

Merged
Jimin730 merged 6 commits into
developfrom
test/218-auth-service-test
Aug 7, 2025
Merged

[TEST] AuthService 테스트 코드 작성#222
Jimin730 merged 6 commits into
developfrom
test/218-auth-service-test

Conversation

@Jimin730

@Jimin730 Jimin730 commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

관련 Issue (필수)

주요 변경 사항 (필수)

  • 회원가입 테스트 코드 작성
    • 중복 이메일 회원가입 시도 예외 케이스 테스트 코드 작성
  • 로그인 테스트 코드 작성
  • 로그아웃 테스트 코드 작성
    • 리프레시 토큰 유효시간 만료 시에도 로그아웃은 성공
  • 토큰 재발급 테스트 코드 작성
    • 리프레시 토큰 정보 일치하지 않을 경우 예외 케이스 테스트 코드 작성
  • application-test.yml 파일 수정
    • jwt secret key 부분 길이 조정

리뷰어 참고 사항

application-test.yml 파일에 임시로 설정해 둔 jwt secret key 길이가 짧아
토큰 부분 테스트 시 오류가 발생 하여 임시 key 의 길이를 더 길게 조정하였습니다 !

추가 정보

없음

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

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

@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.

확인 완료했습니다. 고생 많으셨습니다!

Comment thread src/test/java/com/sudo/railo/auth/application/AuthServiceTest.java Outdated

@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.

일어날 수 있는 케이스를 잘 잡으셨고 given-when-then 패턴도 일관적으로 잘 사용하셨네요,
고생하셨습니다! 👍👍

@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.

확실히 테스트 코드로 시나리오를 보니 문서로서의 역할로 더 이해가 잘 되는 것 같습니다!
고생하셨습니다~ 👍

Comment thread src/test/java/com/sudo/railo/auth/application/AuthServiceTest.java Outdated
@Jimin730
Jimin730 force-pushed the test/218-auth-service-test branch from 702c4a7 to 33fb9ff Compare August 7, 2025 01:25
@Jimin730
Jimin730 merged commit c758f12 into develop Aug 7, 2025
@Jimin730
Jimin730 deleted the test/218-auth-service-test branch August 7, 2025 01:26
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] AuthService 테스트 코드 작성

4 participants