Skip to content

Commit

Permalink
feat: 분석 결과 응답에서 당도 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
nuyh99 committed Jun 6, 2023
1 parent 14be61c commit c2e0534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public final class AnalysisResponse {
private final double dosu;
private final int price;
private final int volume;
private final int sweetness;
private final byte[] drinkImage;
private final String type;

Expand All @@ -37,6 +38,7 @@ public static AnalysisResponse from(final Analysis analysis) {
analysis.getRecommendDrink().getDosu(),
analysis.getRecommendDrink().getPrice(),
analysis.getRecommendDrink().getVolume(),
analysis.getRecommendDrink().getSweetness(),
analysis.getRecommendDrink().getImage(),
analysis.getRecommendDrink().getType().getLabel());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void findByName() {
@Test
void findReviewsById() {
given().log().all()
.get("/drinks/{drink_id}/reviews", 1L)
.get("/drinks/{drink_id}/reviews", 1)
.then().log().all()
.statusCode(HttpStatus.OK.value());
}
Expand Down

0 comments on commit c2e0534

Please sign in to comment.