Skip to content

Commit

Permalink
fix : 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
김원경 committed Dec 21, 2024
1 parent da0b037 commit fc236a4
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 54 deletions.
38 changes: 19 additions & 19 deletions src/test/java/in/koreatech/koin/acceptance/SemesterApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ void setup() {

@Test
void 모든_학기를_조회한다() throws Exception {
semesterFixture.semester("20241");
semesterFixture.semester("20242");
semesterFixture.semester("2024-여름");
semesterFixture.semester("20231");
semesterFixture.semester("20232");
semesterFixture.semester("2023-여름");
semesterFixture.semester("2023-겨울");
semesterFixture.semester_2024년도_1학기();
semesterFixture.semester_2024년도_2학기();
semesterFixture.semester_2024년도_여름();
semesterFixture.semester_2023년도_1학기();
semesterFixture.semester_2023년도_2학기();
semesterFixture.semester_2023년도_여름();
semesterFixture.semester_2023년도_겨울();

mockMvc.perform(
get("/semesters")
Expand Down Expand Up @@ -95,8 +95,8 @@ void setup() {
void 학생이_가진_시간표의_학기를_조회한다() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester1 = semesterFixture.semester("20192");
Semester semester2 = semesterFixture.semester("20201");
Semester semester1 = semesterFixture.semester_2019년도_2학기();
Semester semester2 = semesterFixture.semester_2020년도_1학기();
Lecture HRD_개론 = lectureFixture.HRD_개론(semester1.getSemester());
Lecture 건축구조의_이해_및_실습 = lectureFixture.건축구조의_이해_및_실습(semester2.getSemester());
timetableV2Fixture.시간표6(user, semester1, HRD_개론, null);
Expand All @@ -121,14 +121,14 @@ void setup() {

@Test
void 모든_학기를_조회한다_V3() throws Exception {
semesterFixture.semesterV3_2019년도_1학기();
semesterFixture.semesterV3_2019년도_2학기();
semesterFixture.semesterV3_2019년도_여름();
semesterFixture.semesterV3_2019년도_겨울();
semesterFixture.semesterV3_2020년도_1학기();
semesterFixture.semesterV3_2020년도_2학기();
semesterFixture.semesterV3_2020년도_여름();
semesterFixture.semesterV3_2020년도_겨울();
semesterFixture.semester_2019년도_1학기();
semesterFixture.semester_2019년도_2학기();
semesterFixture.semester_2019년도_여름();
semesterFixture.semester_2019년도_겨울();
semesterFixture.semester_2020년도_1학기();
semesterFixture.semester_2020년도_2학기();
semesterFixture.semester_2020년도_여름();
semesterFixture.semester_2020년도_겨울();

mockMvc.perform(
get("/v3/semesters")
Expand Down Expand Up @@ -177,8 +177,8 @@ void setup() {
void 학생이_가진_시간표의_학기를_조회한다_V3() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester1 = semesterFixture.semesterV3_2019년도_2학기();
Semester semester2 = semesterFixture.semesterV3_2020년도_1학기();
Semester semester1 = semesterFixture.semester_2019년도_2학기();
Semester semester2 = semesterFixture.semester_2020년도_1학기();
Lecture HRD_개론 = lectureFixture.HRD_개론(semester1.getSemester());
Lecture 건축구조의_이해_및_실습 = lectureFixture.건축구조의_이해_및_실습(semester2.getSemester());
timetableV2Fixture.시간표6(user, semester1, HRD_개론, null);
Expand Down
24 changes: 12 additions & 12 deletions src/test/java/in/koreatech/koin/acceptance/TimetableApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void setup() {

@Test
void 특정_학기_강의를_조회한다() throws Exception {
semesterFixture.semester("20192");
semesterFixture.semester("20201");
semesterFixture.semester_2019년도_2학기();
semesterFixture.semester_2020년도_1학기();
String semester = "20201";
lectureFixture.HRD_개론(semester);
lectureFixture.건축구조의_이해_및_실습("20192");
Expand Down Expand Up @@ -85,7 +85,7 @@ void setup() {

@Test
void 특정_학기_강의들을_조회한다() throws Exception {
semesterFixture.semester("20201");
semesterFixture.semester_2020년도_1학기();
String semester = "20201";
lectureFixture.HRD_개론(semester);
lectureFixture.건축구조의_이해_및_실습(semester);
Expand Down Expand Up @@ -170,10 +170,10 @@ void setup() {

@Test
void 계절학기를_조회하면_빈_리스트로_반환한다() throws Exception {
semesterFixture.semester("20241");
semesterFixture.semester("20242");
semesterFixture.semester("2024-여름");
semesterFixture.semester("2024-겨울");
semesterFixture.semester_2024년도_1학기();
semesterFixture.semester_2024년도_2학기();
semesterFixture.semester_2024년도_여름();
semesterFixture.semester_2024년도_겨울();

mockMvc.perform(
get("/lectures")
Expand All @@ -188,7 +188,7 @@ void setup() {
void 시간표를_조회한다() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester = semesterFixture.semester("20192");
Semester semester = semesterFixture.semester_2019년도_2학기();

Lecture 건축구조의_이해_및_실습 = lectureFixture.건축구조의_이해_및_실습(semester.getSemester());
Lecture HRD_개론 = lectureFixture.HRD_개론(semester.getSemester());
Expand Down Expand Up @@ -247,7 +247,7 @@ void setup() {
void 시간표를_조회한다_시간표_프레임_없으면_생성() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester = semesterFixture.semester("20192");
Semester semester = semesterFixture.semester_2019년도_2학기();

mockMvc.perform(
get("/timetables")
Expand All @@ -271,7 +271,7 @@ void setup() {
void 시간표를_생성한다() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester = semesterFixture.semester("20192");
Semester semester = semesterFixture.semester_2019년도_2학기();

lectureFixture.건축구조의_이해_및_실습(semester.getSemester());
lectureFixture.HRD_개론(semester.getSemester());
Expand Down Expand Up @@ -364,7 +364,7 @@ void setup() {
void 시간표를_단일_생성한다_전체_반환() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester = semesterFixture.semester("20192");
Semester semester = semesterFixture.semester_2019년도_2학기();

lectureFixture.건축구조의_이해_및_실습(semester.getSemester());
lectureFixture.HRD_개론(semester.getSemester());
Expand Down Expand Up @@ -471,7 +471,7 @@ void setup() {
void 시간표를_삭제한다() throws Exception {
User user = userFixture.준호_학생().getUser();
String token = userFixture.getToken(user);
Semester semester = semesterFixture.semester("20192");
Semester semester = semesterFixture.semester_2019년도_2학기();

Lecture 건축구조의_이해_및_실습 = lectureFixture.건축구조의_이해_및_실습(semester.getSemester());
Lecture HRD_개론 = lectureFixture.HRD_개론(semester.getSemester());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void setup() {
clear();
user = userFixture.준호_학생().getUser();
token = userFixture.getToken(user);
semester = semesterFixture.semester("20192");
semester = semesterFixture.semester_2019년도_2학기();
}

@Test
Expand Down Expand Up @@ -236,8 +236,8 @@ void setup() {

@Test
void 모든_학기의_시간표_프레임을_조회한다() throws Exception {
Semester semester1 = semesterFixture.semester("20241");
Semester semester2 = semesterFixture.semester("20242");
Semester semester1 = semesterFixture.semester_2024년도_1학기();
Semester semester2 = semesterFixture.semester_2024년도_2학기();

timetableV2Fixture.시간표1(user, semester1);
timetableV2Fixture.시간표2(user, semester1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void setup() {
clear();
user = userFixture.준호_학생().getUser();
token = userFixture.getToken(user);
semester = semesterFixture.semester("20192");
semester = semesterFixture.semester_2019년도_2학기();
}

@Test
Expand Down
Loading

0 comments on commit fc236a4

Please sign in to comment.