From 1b89c28e23fe38ea293a9b33d3d269d88f60ce0d Mon Sep 17 00:00:00 2001 From: emost22 Date: Wed, 26 Jun 2024 02:00:22 +0900 Subject: [PATCH] Test: fix get all experience api result example --- .../java/com/sirius/spurt/ExperienceControllerTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/sirius/spurt/ExperienceControllerTest.java b/src/test/java/com/sirius/spurt/ExperienceControllerTest.java index ea6d9fe..2d60673 100644 --- a/src/test/java/com/sirius/spurt/ExperienceControllerTest.java +++ b/src/test/java/com/sirius/spurt/ExperienceControllerTest.java @@ -119,8 +119,9 @@ void setUp() { .questionId(1L) .subject("질문제목1") .mainText("질문내용1") - .pinIndicator(false) + .pinIndicator(Boolean.FALSE) .categoryList(List.of(Category.PRACTICAL)) + .keyWordList(List.of("keyWord1", "keyWord2")) .build(); GetAllExperienceBusiness.Result.Experience.QuestionList questionList = GetAllExperienceBusiness.Result.Experience.QuestionList.builder() @@ -138,7 +139,10 @@ void setUp() { .questionList(questionList) .build(); GetAllExperienceBusiness.Result result = - GetAllExperienceBusiness.Result.builder().experienceList(List.of(experience)).build(); + GetAllExperienceBusiness.Result.builder() + .experienceList(List.of(experience)) + .totalCount(1) + .build(); when(getAllExperienceBusiness.execute(any())).thenReturn(result); this.mockMvc .perform(