Skip to content

Commit

Permalink
fix: getProjects queryParameter type 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeobi01 committed Sep 19, 2024
1 parent eb3cacc commit 01350db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void getProjects() throws Exception {
);
Page<ProjectResponse> pageResponse = new PageImpl<>(List.of(projectResponse1, projectResponse2), PageRequest.of(0, 10), 2);

when(projectService.getProjects(any(), any(), any(), any(), any())).thenReturn(pageResponse);
when(projectService.getProjects(any(), any(), any(), any(), any(), any())).thenReturn(pageResponse);

// when
ResultActions result = mockMvc.perform(
Expand All @@ -130,6 +130,7 @@ void getProjects() throws Exception {
parameterWithName("title").description("프로젝트 이름").optional(),
parameterWithName("year").description("프로젝트 년도").optional(),
parameterWithName("category").description("프로젝트 카테고리").optional(),
parameterWithName("type").description("프로젝트 타입").optional(),
parameterWithName("page").description("페이지 번호 [default: 0]").optional(),
parameterWithName("size").description("페이지 크기 [default: 10]").optional(),
parameterWithName("sort").description("정렬 기준").optional()
Expand Down

0 comments on commit 01350db

Please sign in to comment.