-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 보고서 작성시 참여한 학생 정보가 기록되지 않는 버그 수정 (#136)
- Loading branch information
Showing
6 changed files
with
21 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,7 +173,7 @@ public void teamReportViewTest() { | |
.title("title") | ||
.content("content") | ||
.totalMinutes(60L) | ||
.participants(List.of("22000328")) | ||
.participants(List.of(savedB.getId())) | ||
.courses(List.of(1L, 2L, 3L)) | ||
.build(); | ||
reportService.createReport(form, "[email protected]"); | ||
|
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 |
---|---|---|
|
@@ -84,7 +84,7 @@ public void reportServiceTest() { | |
.title("title") | ||
.content("content") | ||
.totalMinutes(60L) | ||
.participants(List.of("22000328")) | ||
.participants(List.of(userA.getId())) | ||
.courses(List.of(course.getId(), courseB.getId(), courseC.getId())) | ||
.build(); | ||
|
||
|
@@ -119,19 +119,20 @@ public void reportDetailTest() { | |
.semester(1) | ||
.build(); | ||
courseRepository.save(courseC); | ||
ReportForm form = ReportForm.builder() | ||
.title("title") | ||
.content("content") | ||
.totalMinutes(60L) | ||
.participants(List.of("22000328")) | ||
.courses(List.of(1L, 2L, 3L)) | ||
.build(); | ||
User user = User.builder() | ||
.sid("22000328") | ||
.email("[email protected]") | ||
.role(Role.USER) | ||
.build(); | ||
User saved = userRepository.save(user); | ||
ReportForm form = ReportForm.builder() | ||
.title("title") | ||
.content("content") | ||
.totalMinutes(60L) | ||
.participants(List.of(saved.getId())) | ||
.courses(List.of(1L, 2L, 3L)) | ||
.build(); | ||
|
||
saved.selectCourse(List.of(course, courseB, courseC)); | ||
StudyGroup studyGroup = studyGroupRepository.save(new StudyGroup(1, List.of(saved))); | ||
|
||
|
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 |
---|---|---|
|
@@ -126,7 +126,7 @@ public void userListTest() { | |
.title("title") | ||
.content("content") | ||
.totalMinutes(60L) | ||
.participants(List.of("22000329")) | ||
.participants(List.of(savedA.getId())) | ||
.courses(List.of(1L, 2L, 3L)) | ||
.build(); | ||
ReportDto.ReportInfo report = reportService.createReport(form, "[email protected]"); | ||
|
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