Skip to content

Commit

Permalink
fix: 삭제된 과목 코드 도메인 생성 메서드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
DWL21 committed Feb 5, 2025
1 parent 2b1a5b1 commit ef3ecd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CourseRepositoryImplTest {

@BeforeEach
fun setUp() {
val course = courseRepository.save(MAJOR_REQUIRED.toDomainRandomCourseCode())
val course = courseRepository.save(MAJOR_REQUIRED.toDomain())
val department = departmentRepository.save(COMPUTER.toDomain(1L))
departmentId = department.id
val departmentGrade = departmentGradeRepository.save(FIRST.toDomain(departmentId = departmentId!!))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CourseServiceTest {
@BeforeEach
fun setUp() {
initializer.run()
val course = courseRepository.save(CourseFixture.MAJOR_REQUIRED.toDomainRandomCourseCode())
val course = courseRepository.save(CourseFixture.MAJOR_REQUIRED.toDomain())
val departmentGrade = jpaQueryFactory.selectFrom(departmentGradeEntity)
.innerJoin(departmentEntity)
.on(departmentGradeEntity.departmentId.eq(departmentEntity.id))
Expand Down Expand Up @@ -78,7 +78,7 @@ class CourseServiceTest {
@BeforeEach
fun setUp() {
initializer.run()
val course = courseRepository.save(CourseFixture.MAJOR_ELECTIVE.toDomainRandomCourseCode())
val course = courseRepository.save(CourseFixture.MAJOR_ELECTIVE.toDomain())
val departmentGrade = jpaQueryFactory.selectFrom(departmentGradeEntity)
.innerJoin(departmentEntity)
.on(departmentGradeEntity.departmentId.eq(departmentEntity.id))
Expand Down Expand Up @@ -110,7 +110,7 @@ class CourseServiceTest {
@BeforeEach
fun setUp() {
initializer.run()
val course = courseRepository.save(CourseFixture.GENERAL_REQUIRED.toDomainRandomCourseCode())
val course = courseRepository.save(CourseFixture.GENERAL_REQUIRED.toDomain())
val departmentGrade = jpaQueryFactory.selectFrom(departmentGradeEntity)
.innerJoin(departmentEntity)
.on(departmentGradeEntity.departmentId.eq(departmentEntity.id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TimetableServiceTest(

@BeforeEach
fun setUp() {
val course = courseWriter.save(CourseFixture.MAJOR_REQUIRED.toDomainRandomCourseCode())
val course = courseWriter.save(CourseFixture.MAJOR_REQUIRED.toDomain())
val timetable = timetableWriter.save(TimetableFixture.DEFAULT.toDomain())
courseTimeWriter.save(CourseTimeFixture.MONDAY_17_19.toDomain(course.id!!))
timetableId = timetable.id
Expand Down

0 comments on commit ef3ecd1

Please sign in to comment.