-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: 판매자는 거래 내역 상세 조회시, 자신의 경매 상품의 거래내역을 조회할 수 있다. #132
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.
👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
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.
LGTM 😃
@Test | ||
void 성공하는_경우_BidHistoryInfo를_반환받는다() { | ||
static Stream<Arguments> provideMembersForSuccess() { | ||
Member seller = Member.builder().id(1L).signInId("판매자").role(Role.SELLER).build(); // 소유자 | ||
Member buyer = Member.builder().id(2L).signInId("구매자").role(Role.BUYER).build(); // 소유자 | ||
|
||
return Stream.of( | ||
Arguments.of(seller, "판매자의 구매이력 조회"), | ||
Arguments.of(buyer, "구매자의 구매이력 조회") | ||
); | ||
} | ||
|
||
@ParameterizedTest(name = "{1} 시 성공한다") | ||
@MethodSource("provideMembersForSuccess") | ||
void 소유자가_거래내역_조회시_성공한다(Member member, String description) { | ||
// given | ||
Member seller = Member.builder().id(1L).signInId("판매자").build(); // 소유자 | ||
Member buyer = Member.builder().id(2L).signInId("구매자").build(); // 소유자 | ||
Member seller = Member.builder().id(1L).signInId("판매자").role(Role.SELLER).build(); // 소유자 | ||
Member buyer = Member.builder().id(2L).signInId("구매자").role(Role.BUYER).build(); // 소유자 |
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.
질문: 뒤에 소유자라는 주석은 어떤 의미인가요?!
📄 Summary
🙋🏻 More
close #117