Skip to content

Commit

Permalink
Merge pull request #389 from daedongbread/345-feature-opensearch-도입-및…
Browse files Browse the repository at this point in the history
…-데이터-처리-프로그램-구현

test: Add new properties on test codes
  • Loading branch information
chris910512 authored Dec 23, 2023
2 parents 9a2320c + fe68e10 commit 2bd0d54
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ void searchKeyword() throws Exception {
fieldWithPath("data.searchResultDtoList.[].address").description("빵집 주소"),
fieldWithPath("data.searchResultDtoList.[].totalScore").description("빵집 점수"),
fieldWithPath("data.searchResultDtoList.[].reviewNum").description("빵집 리뷰 갯수"),
fieldWithPath("data.searchResultDtoList.[].distance").description("빵집까지 거리")
fieldWithPath("data.searchResultDtoList.[].distance").description("빵집까지 거리"),
fieldWithPath("data.searchResultDtoList.[].latitude").description("위도"),
fieldWithPath("data.searchResultDtoList.[].longitude").description("경도"),
fieldWithPath("data.searchResultDtoList.[].bakeryImageUrl").description("빵집 이미지 URL"),
fieldWithPath("data.searchResultDtoList.[].flagCount").description("깃발 갯수"),
fieldWithPath("data.searchResultDtoList.[].flagColor").description("깃발 색깔")
)
))
.andExpect(status().isOk());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.depromeet.breadmapbackend.mock;

import com.depromeet.breadmapbackend.domain.flag.FlagColor;
import com.depromeet.breadmapbackend.domain.search.SearchService;
import com.depromeet.breadmapbackend.domain.search.dto.SearchDto;
import com.depromeet.breadmapbackend.domain.search.dto.SearchResultDto;
import com.depromeet.breadmapbackend.domain.search.dto.SearchType;
import com.depromeet.breadmapbackend.domain.search.dto.keyword.response.SearchResultResponse;

import java.util.Collections;
import java.util.List;

/**
Expand Down Expand Up @@ -41,6 +43,11 @@ public SearchResultResponse searchEngine(
.totalScore(5d)
.reviewNum(5L)
.distance(100d)
.bakeryImageUrl(Collections.singletonList("https://test.com"))
.latitude(123d)
.longitude(123d)
.flagCount(123)
.flagColor(FlagColor.ORANGE.getCode())
.build();

return SearchResultResponse
Expand Down

0 comments on commit 2bd0d54

Please sign in to comment.