From ca160c947d720781ee608978158fd73b38642ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=8A=B9=EC=A7=84?= Date: Wed, 27 Dec 2023 21:51:00 +0900 Subject: [PATCH] [FIX] x y swap in path api docs --- .../path/controller/PathControllerTest.java | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/backend/src/test/java/com/twtw/backend/domain/path/controller/PathControllerTest.java b/backend/src/test/java/com/twtw/backend/domain/path/controller/PathControllerTest.java index 0dc4d606..d44c8b55 100644 --- a/backend/src/test/java/com/twtw/backend/domain/path/controller/PathControllerTest.java +++ b/backend/src/test/java/com/twtw/backend/domain/path/controller/PathControllerTest.java @@ -1,15 +1,5 @@ package com.twtw.backend.domain.path.controller; -import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; -import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; - -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.BDDMockito.given; -import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; -import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; - import com.twtw.backend.domain.path.dto.client.car.*; import com.twtw.backend.domain.path.dto.client.ped.Feature; import com.twtw.backend.domain.path.dto.client.ped.Geometry; @@ -17,7 +7,6 @@ import com.twtw.backend.domain.path.dto.client.ped.SearchPedPathResponse; import com.twtw.backend.domain.path.service.PathService; import com.twtw.backend.support.docs.RestDocsTest; - import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; @@ -28,6 +17,15 @@ import java.util.List; import java.util.Map; +import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentRequest; +import static com.twtw.backend.support.docs.ApiDocsUtils.getDocumentResponse; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.BDDMockito.given; +import static org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.document; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + @DisplayName("PathController의") @WebMvcTest(PathController.class) class PathControllerTest extends RestDocsTest { @@ -61,8 +59,8 @@ void searchCarPath() throws Exception { .content( toRequestBody( new SearchCarPathRequest( - "37.636040,126.827507", - "37.644998,126.832659", + "126.827507,37.636040", + "126.832659,37.644998", "", SearchPathOption.TRAFAST, SearchPathFuel.DIESEL, @@ -114,10 +112,10 @@ void searchPedPath() throws Exception { .content( toRequestBody( new SearchPedPathRequest( - 37.636040, 126.827507, - 37.644998, + 37.636040, 126.832659, + 37.644998, "startPoint", "endPoint"))) .contentType(MediaType.APPLICATION_JSON));