-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REFACTOR] 지원서 조회하기와 관련된 API에 대한 리팩토링 (#208)
* refactor: 지원서 모아보기 API * refactor: 칸반 전체 목록 조회 API * refactor: 칸반 전형별 목록 조회 API * refactor: 캘린더 지원서 월별 조회 API * refactor: 캘린더 지원서 일별 목록 조회 API * refactor: 전형일이 작성되어 있지 않은 지원서 목록 조회 API
- Loading branch information
1 parent
f375b24
commit 663c555
Showing
7 changed files
with
442 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,31 @@ void findAllByUserId_application() { | |
.body("success", equalTo(true)); | ||
} | ||
|
||
@DisplayName("지원서 모아보기 기능을 종료 여부 필터링에 해당되는 경우 테스트한다.") | ||
@Test | ||
void findAllByUserId_application_filter_completed() { | ||
// given | ||
int page = 1; | ||
int size = 10; | ||
String sort = "processType"; | ||
String accessToken = signUp("[email protected]", Provider.GOOGLE); | ||
assignDesiredPositions(accessToken); | ||
SimpleApplicationRequest simpleApplicationRequest = new SimpleApplicationRequest("카카오", "개발자", null, | ||
new SimpleApplicationProcessRequest("TO_APPLY", "서류전형", null)); | ||
post(accessToken, "/v1/applications/simple", simpleApplicationRequest); | ||
|
||
String uri = String.format( | ||
"%s?page=%d&size=%d&sort=%s&completed=%s", "/v1/applications", page, size, sort, "false"); | ||
|
||
// when | ||
ValidatableResponse response = get(accessToken, uri); | ||
|
||
// then | ||
response.statusCode(HttpStatus.OK.value()) | ||
.body("success", equalTo(true)) | ||
.body("data.content.size()", is(1)); | ||
} | ||
|
||
@DisplayName("지원서를 작성하는 기능을 테스트한다") | ||
@Test | ||
void create_application() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.