Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public record CoordinateDetailsListResponse(
@Schema(description = "코디-옷의 비율", example = "1.5") Double ratio,
@Schema(description = "코디-옷의 각도", example = "240.6") Double degree,
@Schema(description = "코디-옷의 순서", example = "1") int order,
@Schema(description = "옷 ID", example = "1") Long clothId,
@Schema(description = "옷의 imageUrl", example = "https://example.jpg") String imageUrl,
@Schema(description = "옷 브랜드", example = "나이키") String brand,
@Schema(description = "옷 이름", example = "나이키 맨투맨") String name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public List<CoordinateDetailsListResponse> findAllCoordinateDetailsByCoordinateI
coordinateCloth.ratio,
coordinateCloth.degree,
coordinateCloth.order,
coordinateCloth.cloth.id,
coordinateCloth.cloth.clothImageUrl,
coordinateCloth.cloth.brand,
coordinateCloth.cloth.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ class 코디_Details_조회_요청_시 {
1.5,
240.1,
1,
14L,
"testImageUrl1",
"testBrand1",
"testName1",
Expand All @@ -1567,6 +1568,7 @@ class 코디_Details_조회_요청_시 {
1.5,
240.1,
2,
15L,
"testImageUrl2",
"testBrand2",
"testName2",
Expand All @@ -1590,6 +1592,7 @@ class 코디_Details_조회_요청_시 {
.andExpect(jsonPath("$.result[0].ratio").value(1.5))
.andExpect(jsonPath("$.result[0].degree").value(240.1))
.andExpect(jsonPath("$.result[0].order").value(1))
.andExpect(jsonPath("$.result[0].clothId").value(14))
.andExpect(jsonPath("$.result[0].imageUrl").value("testImageUrl1"))
.andExpect(jsonPath("$.result[0].brand").value("testBrand1"))
.andExpect(jsonPath("$.result[0].name").value("testName1"))
Expand All @@ -1602,6 +1605,7 @@ class 코디_Details_조회_요청_시 {
.andExpect(jsonPath("$.result[1].ratio").value(1.5))
.andExpect(jsonPath("$.result[1].degree").value(240.1))
.andExpect(jsonPath("$.result[1].order").value(2))
.andExpect(jsonPath("$.result[1].clothId").value(15))
.andExpect(jsonPath("$.result[1].imageUrl").value("testImageUrl2"))
.andExpect(jsonPath("$.result[1].brand").value("testBrand2"))
.andExpect(jsonPath("$.result[1].name").value("testName2"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ void setUp() {
CoordinateDetailsListResponse::ratio,
CoordinateDetailsListResponse::degree,
CoordinateDetailsListResponse::order,
CoordinateDetailsListResponse::clothId,
CoordinateDetailsListResponse::imageUrl,
CoordinateDetailsListResponse::brand,
CoordinateDetailsListResponse::name,
Expand All @@ -1732,6 +1733,7 @@ void setUp() {
1.5,
240.1,
1,
1L,
"testImageUrl1",
null,
null,
Expand All @@ -1744,6 +1746,7 @@ void setUp() {
1.5,
240.1,
2,
2L,
"testImageUrl2",
null,
null,
Expand Down