Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE/fix] 테스트 실패로인한 workflow 실패 해결 #381

Merged
merged 3 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
import java.time.LocalTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gaebaljip.exceed.application.domain.meal.MealType;

import lombok.Builder;

public record MealRecordDTO(
LocalTime time, MealType mealType, String imageUri, List<FoodDTO> foodDTOS) {
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm", timezone = "Asia/Seoul")
LocalTime time,
MealType mealType,
String imageUri,
List<FoodDTO> foodDTOS) {

@Builder
public MealRecordDTO {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.gaebaljip.exceed.application.port.in.meal.GetSpecificMealQuery;
import com.gaebaljip.exceed.application.port.in.member.GetMaintainMealUsecase;
import com.gaebaljip.exceed.application.port.in.member.GetTargetMealUsecase;
import com.gaebaljip.exceed.application.service.nutritionist.GetAllCalorieAnalysisService;
import com.gaebaljip.exceed.common.ControllerTest;
import com.gaebaljip.exceed.common.WithMockUser;
import com.gaebaljip.exceed.dto.CurrentMealDTO;
Expand All @@ -32,6 +33,8 @@ class SpecificMealDTOControllerTest extends ControllerTest {

@MockBean private GetSpecificMealQuery getSpecificMealQuery;

@MockBean private GetAllCalorieAnalysisService getAllCalorieAnalysisService;

@Test
@WithMockUser
void getMealNutrition() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ void when_getTodayMeal_expected_success() throws Exception {
}

@Test
@DisplayName("성공 : 특정 날짜 식사 조회"
+ "특정 날짜에 방문하지 않았을 경우 isVisited가 false이고, 달성도 다 false로 나와야 한다.")
@DisplayName("성공 : 특정 날짜 식사 조회" + "특정 날짜에 방문하지 않았을 경우 isVisited가 false이고, 달성도 다 false로 나와야 한다.")
@WithMockUser
void when_getSpecificMeal_expected_success() throws Exception {

Expand Down
Loading