-
Notifications
You must be signed in to change notification settings - Fork 1
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
Jacoco 설정 및 카카오페이 결제준비 Service, Repository Test 생성 #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 남긴부분 수정한 뒤 merge 부탁드립니다~
|
||
@Service | ||
public class PaymentService {} | ||
@RequiredArgsConstructor | ||
public class PaymentService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
트랜잭션이 빠져있습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정하였습니다
* @param dto | ||
* @return | ||
*/ | ||
public KakaopayReadyResponseDto payReady(KakaopayReadyRequestDto dto) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 메서드는 두 개의 역할을 가지고 있는 것 같습니다.
또한 트랜잭션 안에서 외부 호출이면서 오랜 시간이 소요될 가능성이 있는 restTemplate통신을 진행하는 게 좋지 못해 보입니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
외부API 호출 로직을 분리하여 수정하였습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 확인했습니다~
개요
Jacoco 설정 및 단건결제(카카오페이 결제준비) Service, Repository Test 생성
PR 유형
어떤 변경 사항이 있나요? ✅
스크린 샷
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.