[TEST] 결제 관련 기능 테스트 코드 작성#238
Merged
Merged
Conversation
Friox
approved these changes
Aug 7, 2025
Friox
left a comment
Contributor
There was a problem hiding this comment.
'다른 사용자의 예약으로는 결제할 수 없다' 등 특수한 케이스도 고려하여 잘 작성하신 것 같습니다!
저도 Fixture를 별도로 생성하여 작성하면 어땠을까하는 생각이 드네요.
주석이 적절하게 달려있어서 보기 편했습니다. 고생하셨습니다! 👍👍
Jimin730
approved these changes
Aug 7, 2025
Jimin730
left a comment
Contributor
There was a problem hiding this comment.
PR에 테스트 로직 별로 흐름을 꼼꼼하게 작성해주셔서 읽기 수월 했던 것 같습니다!
다양한 예외 케이스들 또한 고려하여 테스트 코드 작성해 주신 것까지 모두 확인했습니다
고생하셨습니다 👍 👍
chanwonlee
approved these changes
Aug 7, 2025
chanwonlee
left a comment
Contributor
There was a problem hiding this comment.
예외 상황까지 꼼꼼하게 테스트해 주신 것 같아 좋네요! PaymentFixture를 활용해서 테스트 데이터를 생성하니 코드가 깔끔한 것 같습니다. 수고하셨습니다!
Ogu1208
approved these changes
Aug 7, 2025
Ogu1208
left a comment
Contributor
There was a problem hiding this comment.
중간에 합류하셔서 결제 기능을 처음부터 구현하시느라 고생하셨을텐데 테스트코드까지 시간내에 작성해주셔서 멋집니다 👍👍
이후에 여유가 되실 때 아래 케이스들도 테스트해보시면 좋을 것 같습니다
- 존재하지 않는 예약 결제 실패
- 이미 취소된 결제는 재취소 불가능
- 동일한 예약에 대한 동시 결제 요청 시 하나만 성공 (동시성 테스트)
정말 너무너무 고생하셨습니다 👍👍
c924a2d to
e70d7a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 Issue (필수)
주요 변경 사항 (필수)
테스트 설정 계층
🔄 1. 결제 처리 (Payment Processing)
✅ 성공 케이스
❌ 실패 케이스
🚫 2. 결제 취소 (Payment Cancellation)
✅ 성공 케이스
❌ 실패 케이스
📋 3. 결제 내역 조회 (Payment History)
✅ 성공 케이스
❌ 실패 케이스
리뷰어 참고 사항
추가 정보
없음
PR 작성 체크리스트 (필수)