Skip to content

Commit

Permalink
[FIX] x y swap in path api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Dec 27, 2023
1 parent 83f0037 commit ca160c9
Showing 1 changed file with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
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;
import com.twtw.backend.domain.path.dto.client.ped.SearchPedPathRequest;
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;
Expand All @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit ca160c9

Please sign in to comment.