Skip to content

Commit

Permalink
Test: fix get all experience api result example
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jun 25, 2024
1 parent 8b578dc commit 1b89c28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/java/com/sirius/spurt/ExperienceControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(
Expand Down

0 comments on commit 1b89c28

Please sign in to comment.