-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from code-review-platform-flow/feat/change-struct
feat: db 구조 변경에 의한 수정
- Loading branch information
Showing
11 changed files
with
22 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
52 changes: 0 additions & 52 deletions
52
src/main/java/com/flow/payment/entity/PaymentLogsEntity.java
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,11 @@ public class OrderControllerTest extends ResourceSnippetIntegrationTest { | |
@Test | ||
@DisplayName("주문 생성 성공") | ||
void createOrderSuccess() throws Exception { | ||
OrdersRequestDto request = OrdersRequestDto.builder().email("[email protected]").totalAmount( | ||
BigDecimal.valueOf(1000)).build(); | ||
OrdersRequestDto request = OrdersRequestDto.builder() | ||
.coffeeId(1L) | ||
.totalAmount(BigDecimal.valueOf(1000)).build(); | ||
OrdersResponseDto response = OrdersResponseDto.builder() | ||
.orderId(1L) | ||
.customerKey(UUID.randomUUID()) | ||
.tossOrderId(UUID.randomUUID().toString()) | ||
.build(); | ||
|
@@ -55,10 +57,11 @@ void createOrderSuccess() throws Exception { | |
.requestSchema(Schema.schema("주문 생성 요청")) | ||
.responseSchema(Schema.schema("주문 생성 응답")) | ||
.requestFields( | ||
fieldWithPath("email").description("이메일"), | ||
fieldWithPath("coffeeId").description("커피챗 ID"), | ||
fieldWithPath("totalAmount").description("총 금액") | ||
) | ||
.responseFields( | ||
fieldWithPath("orderId").description("주문서 번호"), | ||
fieldWithPath("customerKey").description("고객 번호 (UUID)"), | ||
fieldWithPath("tossOrderId").description("토스 주문 번호 (UUID)") | ||
) | ||
|
@@ -69,8 +72,9 @@ void createOrderSuccess() throws Exception { | |
@Test | ||
@DisplayName("주문 생성 실패") | ||
void createOrderFailByEmail() throws Exception { | ||
OrdersRequestDto request = OrdersRequestDto.builder().email("[email protected]").totalAmount( | ||
BigDecimal.valueOf(1000)).build(); | ||
OrdersRequestDto request = OrdersRequestDto.builder() | ||
.coffeeId(1L) | ||
.totalAmount(BigDecimal.valueOf(1000)).build(); | ||
|
||
given(ordersCreateService.create(request)).willThrow(new CustomNotFoundException()); | ||
|
||
|
@@ -90,7 +94,7 @@ void createOrderFailByEmail() throws Exception { | |
.requestSchema(Schema.schema("주문 생성 요청")) | ||
.responseSchema(Schema.schema("주문 생성 응답")) | ||
.requestFields( | ||
fieldWithPath("email").description("이메일"), | ||
fieldWithPath("coffeeId").description("커피챗 ID"), | ||
fieldWithPath("totalAmount").description("총 금액") | ||
) | ||
.responseFields() | ||
|
This file contains 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