Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static List<Long> toListClassTime(String classTime) {
List<String> numbers = List.of(classTime.split(","));

return numbers.stream()
.map(String::strip)
.map(Long::parseLong)
.toList();
}
Expand Down
10 changes: 3 additions & 7 deletions src/test/java/in/koreatech/koin/acceptance/TimetableApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void getSemesterLecture() {
.isEnglish("N")
.designScore("0")
.isElearning("N")
.classTime("[200,201,202,203,204,205,206,207]")
.classTime("[200, 201, 202, 203, 204, 205, 206, 207]")
.build();

Lecture lecture2 = Lecture.builder()
Expand Down Expand Up @@ -88,7 +88,6 @@ void getSemesterLecture() {
.param("semester_date", lecture1.getSemester())
.get("/lectures")
.then()
.log().all()
.statusCode(HttpStatus.OK.value())
.extract();

Expand Down Expand Up @@ -136,7 +135,7 @@ void getSemesterLectures() {
.isEnglish("N")
.designScore("0")
.isElearning("N")
.classTime("[200,201,202,203,204,205,206,207]")
.classTime("[200, 201, 202, 203, 204, 205, 206, 207]")
.build();

Lecture lecture2 = Lecture.builder()
Expand Down Expand Up @@ -181,7 +180,6 @@ void getSemesterLectures() {
.param("semester_date", lecture1.getSemester())
.get("/lectures")
.then()
.log().all()
.statusCode(HttpStatus.OK.value())
.extract();

Expand All @@ -206,7 +204,7 @@ void isNotSemester() {
.isEnglish("N")
.designScore("0")
.isElearning("N")
.classTime("[200,201,202,203,204,205,206,207]")
.classTime("[200, 201, 202, 203, 204, 205, 206, 207]")
.build();

Lecture lecture2 = Lecture.builder()
Expand Down Expand Up @@ -234,7 +232,6 @@ void isNotSemester() {
.param("semester_date", 20193)
.get("/lectures")
.then()
.log().all()
.statusCode(HttpStatus.NOT_FOUND.value())
.extract();
}
Expand All @@ -256,7 +253,6 @@ void findAllSemesters() {
.when()
.get("/semesters")
.then()
.log().all()
.statusCode(HttpStatus.OK.value())
.extract();

Expand Down