Skip to content

Commit

Permalink
test: 테스트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Sep 13, 2023
1 parent 0540e70 commit 982b10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class LectureMapper {
Lecture mapToLectureDomainEntity(LectureJpaEntity lecture) {

return Lecture.builder()
.id(lecture.getId())
.lectureCode(lecture.getLectureCode())
.name(lecture.getName())
.credit(lecture.getCredit())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ void findByUser() {
.studentNumber("60191656").build();
userRepository.save(user);

LectureJpaEntity lecture = LectureJpaEntity.builder().build();
LectureJpaEntity lecture = LectureJpaEntity.builder()
.lectureCode("KMA02105").build();
lectureRepository.save(lecture);

TakenLectureJpaEntity takenLectureA = TakenLectureJpaEntity.builder()
Expand Down

0 comments on commit 982b10f

Please sign in to comment.