-
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
[POM-84] test: 중복된 엔티티 객체 생성 코드 분리 #42
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.
🏖️
return new Fee(PGType.TOSS, 10000); | ||
} | ||
|
||
|
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.
|
||
// then | ||
assertThat(sales).isNotNull(); | ||
assertThat(sales()).isNotNull(); |
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.
해당 메서드는 Sales가 생성되는 것을 테스트하므로 예외를 던지지 않는다 + Null이 아니다를 합쳐서 isNotNull
을 사용했습니다!
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.
🍶
📌 구현 설명
중복된 엔티티 객체 생성 코드 static 메서드로 분리
✅ 피드백 반영사항
이전 PR의 리뷰 사항 반영