-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Refactor/#168] JSON Property Case 변경 (SNAKE_CASE -> LOWER_CAMEL_CASE)
- Loading branch information
Showing
9 changed files
with
60 additions
and
63 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,11 +56,11 @@ public void createLectureTest() throws Exception { | |
.contentType(MediaType.APPLICATION_JSON) | ||
.content("{\n" + | ||
" \"title\": \"절권도 강의\",\n" + | ||
" \"apply_dead_line\": \"9022-07-31T16:51:33\",\n" + | ||
" \"days_of_weeks\": \"월 수 금\",\n" + | ||
" \"applyDeadLine\": \"9022-07-31T16:51:33\",\n" + | ||
" \"daysOfWeeks\": \"월 수 금\",\n" + | ||
" \"place\": \"6호관 623 강의실\",\n" + | ||
" \"curriculum_details\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\",\n" + | ||
" \"participants_limits\": 30,\n" + | ||
" \"curriculumDetails\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\",\n" + | ||
" \"participantsLimits\": 30,\n" + | ||
" \"method\": 1,\n" + | ||
" \"introduction\": \"호신술을 배워보자\"\n" + | ||
"}")) | ||
|
@@ -83,11 +83,11 @@ public void updateLectureTest() throws Exception { | |
.content("{\n" + | ||
" \"id\": \"1\",\n" + | ||
" \"title\": \"절권도 강의\",\n" + | ||
" \"apply_dead_line\": \"9022-07-31T16:51:33\",\n" + | ||
" \"days_of_weeks\": \"월 수 금\",\n" + | ||
" \"applyDeadLine\": \"9022-07-31T16:51:33\",\n" + | ||
" \"daysOfWeeks\": \"월 수 금\",\n" + | ||
" \"place\": \"6호관 623 강의실\",\n" + | ||
" \"curriculum_details\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\",\n" + | ||
" \"participants_limits\": 30,\n" + | ||
" \"curriculumDetails\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\",\n" + | ||
" \"participantsLimits\": 30,\n" + | ||
" \"method\": 1,\n" + | ||
" \"introduction\": \"호신술을 배워보자\"\n" + | ||
"}")) | ||
|
@@ -154,7 +154,7 @@ public void getLectureDetailsTest() throws Exception { | |
" \"major\": \"산업경영공학과\"," + | ||
" \"name\": \"유동현\"" + | ||
" }," + | ||
" \"co_instructors\": [" + | ||
" \"coInstructors\": [" + | ||
" {" + | ||
" \"id\": 12345678," + | ||
" \"major\": \"스마트모빌리티공학과\"," + | ||
|
@@ -166,15 +166,15 @@ public void getLectureDetailsTest() throws Exception { | |
" \"name\": \"나까무라철수\"" + | ||
" }" + | ||
" ]," + | ||
" \"apply_dead_line\": \"9022-07-31T17:11:36\"," + | ||
" \"days_of_weeks\": \"월 금\"," + | ||
" \"applyDeadLine\": \"9022-07-31T17:11:36\"," + | ||
" \"daysOfWeeks\": \"월 금\"," + | ||
" \"place\": \"구내식당\"," + | ||
" \"introduction\": \"호신술을 배워보자\"," + | ||
" \"curriculum_details\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\"," + | ||
" \"participants_limits\": 30," + | ||
" \"curriculumDetails\": \"1주차: 빅데이터에 기반한 공격패턴분석<br> 2주차: ...\"," + | ||
" \"participantsLimits\": 30," + | ||
" \"method\": 1," + | ||
" \"state\": \"WAITING\"," + | ||
" \"reject_reason\": null," + | ||
" \"rejectReason\": null," + | ||
" \"paid\": false," + | ||
" \"created\": \"9022-07-23T17:11:36\"," + | ||
" \"updated\": null" + | ||
|
@@ -203,42 +203,42 @@ public void getLectureListTest() throws Exception { | |
//then | ||
then(lectureService).should(times(1)).getList(any()); | ||
JSONAssert.assertEquals("{\n" + | ||
" \"total_pages\": 1,\n" + | ||
" \"total_elements\": 3,\n" + | ||
" \"totalPages\": 1,\n" + | ||
" \"totalElements\": 3,\n" + | ||
" \"size\": 6,\n" + | ||
" \"content\": [\n" + | ||
" {\n" + | ||
" \"lecture_id\": 3,\n" + | ||
" \"lectureId\": 3,\n" + | ||
" \"title\": \"title3\",\n" + | ||
" \"chief_id\": 1000003,\n" + | ||
" \"chiefId\": 1000003,\n" + | ||
" \"introduction\": \"intro3\",\n" + | ||
" \"apply_deadline\": \"2003-03-03T03:03:03\",\n" + | ||
" \"applyDeadline\": \"2003-03-03T03:03:03\",\n" + | ||
" \"status\": \"PROGRESSING\",\n" + | ||
" \"method\": 1,\n" + | ||
" \"participants_limits\": 32,\n" + | ||
" \"the_number_of_current_participants\": 4\n" + | ||
" \"participantsLimits\": 32,\n" + | ||
" \"theNumberOfCurrentParticipants\": 4\n" + | ||
" },\n" + | ||
" {\n" + | ||
" \"lecture_id\": 2,\n" + | ||
" \"lectureId\": 2,\n" + | ||
" \"title\": \"title2\",\n" + | ||
" \"chief_id\": 1000002,\n" + | ||
" \"chiefId\": 1000002,\n" + | ||
" \"introduction\": \"intro2\",\n" + | ||
" \"apply_deadline\": \"2002-02-02T02:02:02\",\n" + | ||
" \"applyDeadline\": \"2002-02-02T02:02:02\",\n" + | ||
" \"status\": \"PROGRESSING\",\n" + | ||
" \"method\": 1,\n" + | ||
" \"participants_limits\": 31,\n" + | ||
" \"the_number_of_current_participants\": 3\n" + | ||
" \"participantsLimits\": 31,\n" + | ||
" \"theNumberOfCurrentParticipants\": 3\n" + | ||
" },\n" + | ||
" {\n" + | ||
" \"lecture_id\": 1,\n" + | ||
" \"lectureId\": 1,\n" + | ||
" \"title\": \"title1\",\n" + | ||
" \"chief_id\": 1000001,\n" + | ||
" \"chiefId\": 1000001,\n" + | ||
" \"introduction\": \"intro1\",\n" + | ||
" \"apply_deadline\": \"2001-01-01T01:01:01\",\n" + | ||
" \"applyDeadline\": \"2001-01-01T01:01:01\",\n" + | ||
" \"status\": \"PROGRESSING\",\n" + | ||
" \"method\": 1,\n" + | ||
" \"participants_limits\": 30,\n" + | ||
" \"the_number_of_current_participants\": 2\n" + | ||
" \"participantsLimits\": 30,\n" + | ||
" \"theNumberOfCurrentParticipants\": 2\n" + | ||
" }\n" + | ||
" ],\n" + | ||
" \"number\": 0,\n" + | ||
|
@@ -249,16 +249,16 @@ public void getLectureListTest() throws Exception { | |
" },\n" + | ||
" \"first\": true,\n" + | ||
" \"last\": true,\n" + | ||
" \"number_of_elements\": 3,\n" + | ||
" \"numberOfElements\": 3,\n" + | ||
" \"pageable\": {\n" + | ||
" \"offset\": 0,\n" + | ||
" \"sort\": {\n" + | ||
" \"empty\": false,\n" + | ||
" \"sorted\": true,\n" + | ||
" \"unsorted\": false\n" + | ||
" },\n" + | ||
" \"page_number\": 0,\n" + | ||
" \"page_size\": 6,\n" + | ||
" \"pageNumber\": 0,\n" + | ||
" \"pageSize\": 6,\n" + | ||
" \"paged\": true,\n" + | ||
" \"unpaged\": false\n" + | ||
" },\n" + | ||
|
@@ -278,7 +278,7 @@ public void updateLectureStatusTest() throws Exception { | |
.contentType(MediaType.APPLICATION_JSON) | ||
.content("{\n" + | ||
" \"status\": \"PROGRESSING\",\n" + | ||
" \"reject_reason\": null\n" + | ||
" \"rejectReason\": null\n" + | ||
"}")) | ||
.andExpect(status().isNoContent()); | ||
|
||
|
@@ -380,17 +380,17 @@ public void searchStudentsInformation() throws Exception { | |
//then | ||
then(studentService).should(times(1)).searchStudents(any(), any()); | ||
JSONAssert.assertEquals("{\n" + | ||
" \"total_pages\": 3,\n" + | ||
" \"total_elements\": 51,\n" + | ||
" \"totalPages\": 3,\n" + | ||
" \"totalElements\": 51,\n" + | ||
" \"size\": 25,\n" + | ||
" \"content\": [\n" + | ||
" {\n" + | ||
" \"name\": \"홍길동50\",\n" + | ||
" \"member_id\": 1000050,\n" + | ||
" \"memberId\": 1000050,\n" + | ||
" \"phone\": \"010-0000-0000\",\n" + | ||
" \"email\": \"[email protected]\",\n" + | ||
" \"assignment_count\": 0,\n" + | ||
" \"attendance_count\": 0,\n" + | ||
" \"assignmentCount\": 0,\n" + | ||
" \"attendanceCount\": 0,\n" + | ||
" \"status\": \"PROGRESS\",\n" + | ||
" \"sid\": 50\n" + | ||
" }\n" + | ||
|
@@ -403,16 +403,16 @@ public void searchStudentsInformation() throws Exception { | |
" },\n" + | ||
" \"first\": false,\n" + | ||
" \"last\": true,\n" + | ||
" \"number_of_elements\": 1,\n" + | ||
" \"numberOfElements\": 1,\n" + | ||
" \"pageable\": {\n" + | ||
" \"offset\": 50,\n" + | ||
" \"sort\": {\n" + | ||
" \"empty\": false,\n" + | ||
" \"sorted\": true,\n" + | ||
" \"unsorted\": false\n" + | ||
" },\n" + | ||
" \"page_number\": 2,\n" + | ||
" \"page_size\": 25,\n" + | ||
" \"pageNumber\": 2,\n" + | ||
" \"pageSize\": 25,\n" + | ||
" \"paged\": true,\n" + | ||
" \"unpaged\": false\n" + | ||
" },\n" + | ||
|
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