Skip to content

Commit 86fb591

Browse files
committed
test: test 검증 변수명 수정
1 parent 3ac4048 commit 86fb591

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/back/domain/study/plan/service/StudyPlanService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private StudyPlanResponse createModifiedVirtualPlan(StudyPlan originalPlan, Stud
261261
RepeatRuleEmbeddable modifiedRule = exception.getModifiedRepeatRule();
262262
StudyPlanResponse.RepeatRuleResponse newRepeatRule = new StudyPlanResponse.RepeatRuleResponse();
263263
newRepeatRule.setFrequency(modifiedRule.getFrequency());
264-
newRepeatRule.setIntervalValue(modifiedRule.getIntervalValue());
264+
newRepeatRule.setIntervalValue(modifiedRule.getRepeatInterval());
265265
newRepeatRule.setByDay(modifiedRule.getByDay());
266266
newRepeatRule.setUntilDate(modifiedRule.getUntilDate());
267267

@@ -470,7 +470,7 @@ private void updateRepeatRule(RepeatRule repeatRule, StudyPlanRequest.RepeatRule
470470
private RepeatRuleEmbeddable createRepeatRuleEmbeddable(StudyPlanRequest.RepeatRuleRequest request, LocalDateTime startDate) {
471471
RepeatRuleEmbeddable embeddable = new RepeatRuleEmbeddable();
472472
embeddable.setFrequency(request.getFrequency());
473-
embeddable.setIntervalValue(request.getIntervalValue());
473+
embeddable.setRepeatInterval(request.getIntervalValue());
474474

475475
// byDay 자동 설정 (오버로딩된 메서드 사용)
476476
getByDayInWeekly(request, startDate, embeddable);

src/test/java/com/back/domain/study/plan/controller/StudyPlanControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void t2() throws Exception {
201201
.andExpect(jsonPath("$.data.startDate").value("2025-09-26T10:46:00"))
202202
.andExpect(jsonPath("$.data.endDate").value("2025-09-26T11:46:00"))
203203
.andExpect(jsonPath("$.data.repeatRule.frequency").value("DAILY"))
204-
.andExpect(jsonPath("$.data.repeatRule.repeatInterval").value(1))
204+
.andExpect(jsonPath("$.data.repeatRule.intervalValue").value(1))
205205
.andExpect(jsonPath("$.data.repeatRule.byDay", hasSize(0)))
206206
.andExpect(jsonPath("$.data.repeatRule.untilDate").value("2025-12-31"));
207207

0 commit comments

Comments
 (0)