Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
for (PrivateSchedule privateSchedule : privateSchedules) {
ScheduleGroup scheduleGroup = scheduleGroups.get(privateSchedule.getGroupId());
if (scheduleGroup == null) {
throw new NotExistException(ErrorCode.SCHEDULE_GROUP_NOT_FOUND);
continue;

Check warning on line 110 in gg-calendar-api/src/main/java/gg/calendar/api/user/schedule/privateschedule/service/PrivateScheduleService.java

View check run for this annotation

Codecov / codecov/patch

gg-calendar-api/src/main/java/gg/calendar/api/user/schedule/privateschedule/service/PrivateScheduleService.java#L110

Added line #L110 was not covered by tests
}
response.add(PrivateSchedulePeriodResDto.toDto(privateSchedule, scheduleGroup));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,22 +565,5 @@ void endTimeBeforeStartTime() throws Exception {
.param("end", LocalDate.now().toString()))
.andExpect(status().isBadRequest());
}

@Test
@DisplayName("์Šค์ผ€์ค„ ๊ทธ๋ฃน์ด ์—†๋Š” ๊ฒฝ์šฐ 404")
void notFoundScheduleGroup() throws Exception {
//given
PublicSchedule publicSchedule = privateScheduleMockData.createPublicSchedule(user.getIntraId(),
DetailClassification.PRIVATE_SCHEDULE);
PrivateSchedule privateSchedule = privateScheduleMockData.createPrivateSchedule(user, publicSchedule,
0L);
//when&then
mockMvc.perform(get("/calendar/private")
.header("Authorization", "Bearer " + accessToken)
.contentType(MediaType.APPLICATION_JSON)
.param("start", LocalDate.now().toString())
.param("end", LocalDate.now().plusDays(10).toString()))
.andExpect(status().isNotFound());
}
}
}