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));