Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 20, 2023
1 parent d5a04ef commit 3d94f36
Showing 1 changed file with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,25 @@ void searchCarPath() throws Exception {
@DisplayName("보행자 경로 검색 API가 수행되는가")
void searchPedPath() throws Exception {
// given
final SearchPedPathResponse expected = new SearchPedPathResponse("FeatureCollection", List.of(
new Feature(
"Feature",
new Geometry(
"Point",
new Double[][]{{126.92364104902308,37.556759264185274}}
)
),

new Feature(
"Feature",
new Geometry(
"LineString",
new Double[][]{{126.92364104902308,37.556759264185274},{126.92359383142113,37.55672315696065}}
)
)
));
final SearchPedPathResponse expected =
new SearchPedPathResponse(
"FeatureCollection",
List.of(
new Feature(
"Feature",
new Geometry(
"Point",
new Double[][] {
{126.92364104902308, 37.556759264185274}
})),
new Feature(
"Feature",
new Geometry(
"LineString",
new Double[][] {
{126.92364104902308, 37.556759264185274},
{126.92359383142113, 37.55672315696065}
}))));

given(pathService.searchPedPath(any())).willReturn(expected);

Expand All @@ -112,11 +114,12 @@ void searchPedPath() throws Exception {
.content(
toRequestBody(
new SearchPedPathRequest(
37.636040,126.827507,
37.644998,126.832659,
37.636040,
126.827507,
37.644998,
126.832659,
"startPoint",
"endPoint"
)))
"endPoint")))
.contentType(MediaType.APPLICATION_JSON));

// then
Expand Down

0 comments on commit 3d94f36

Please sign in to comment.