From 982b10f24f09fc434e663d1a426c7629a0991131 Mon Sep 17 00:00:00 2001 From: 5uhwann <5uhwann27@gmail.com> Date: Thu, 14 Sep 2023 01:53:41 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lecture/adapter/out/persistence/LectureMapper.java | 1 + .../adaptor/out/persistence/TakenLectureRepositoryTest.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/plzgraduate/myongjigraduatebe/lecture/adapter/out/persistence/LectureMapper.java b/src/main/java/com/plzgraduate/myongjigraduatebe/lecture/adapter/out/persistence/LectureMapper.java index c8491470..8de57768 100644 --- a/src/main/java/com/plzgraduate/myongjigraduatebe/lecture/adapter/out/persistence/LectureMapper.java +++ b/src/main/java/com/plzgraduate/myongjigraduatebe/lecture/adapter/out/persistence/LectureMapper.java @@ -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()) diff --git a/src/test/java/com/plzgraduate/myongjigraduatebe/takenlecture/adaptor/out/persistence/TakenLectureRepositoryTest.java b/src/test/java/com/plzgraduate/myongjigraduatebe/takenlecture/adaptor/out/persistence/TakenLectureRepositoryTest.java index aa3f23b7..26431de7 100644 --- a/src/test/java/com/plzgraduate/myongjigraduatebe/takenlecture/adaptor/out/persistence/TakenLectureRepositoryTest.java +++ b/src/test/java/com/plzgraduate/myongjigraduatebe/takenlecture/adaptor/out/persistence/TakenLectureRepositoryTest.java @@ -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()