Skip to content

[TEST] Member 서비스 테스트 코드 작성 #230

Merged
Jimin730 merged 4 commits into
developfrom
test/205-member-service
Aug 7, 2025
Merged

[TEST] Member 서비스 테스트 코드 작성 #230
Jimin730 merged 4 commits into
developfrom
test/205-member-service

Conversation

@Jimin730

@Jimin730 Jimin730 commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

관련 Issue (필수)

주요 변경 사항 (필수)

  • MemberService 테스트 코드 작성
    • MemberRepository에 soft delete 조건 우회하는 네이티브 쿼리 추가
  • MemberNoGenerator 테스트 코드 작성

리뷰어 참고 사항

없음

추가 정보

없음

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.

member 서비스 테스트 코드 확인했습니다! 저는 그동안 Exception을 검증할때 assertThatThrownBy을 주로 사용했는데 assertThatExceptionOfType으로도 검증할 수 있다는 걸 알게된 것 같습니다. 고생하셨습니다!

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

고생하셨습니다! 👍

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

테스트를 위해 레포지토리 메서드도 추가하셨네요,
고생하셨습니다! 👍👍

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

성공하는 경우와 실패하는 경우 등 모든 케이스에 대해 테스트 코드를 잘 작성하신 것 같습니다.

고생하셨습니다! 👍

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

저도 이번에 @SQLRestriction 를 붙일때 쿼리 조건이 매번 붙어서 나가고 이런 유형들의 어노테이션이 있는지 처음 알게된 것 같습니다! 항상 잘 알아보고 써야겠다고 다시 한번 생각이 드네요ㅜㅜ

고생하셨습니다 👍

@Jimin730
Jimin730 force-pushed the test/205-member-service branch from 4e8a654 to 2da612f Compare August 7, 2025 01:41
@Jimin730
Jimin730 merged commit fc772ea into develop Aug 7, 2025
3 checks passed
@Jimin730
Jimin730 deleted the test/205-member-service branch August 7, 2025 01:44
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] Member 서비스 테스트 코드 작성

6 participants