-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [Feature] 개인일정 수정 api #1057 #1087
The head ref may contain hidden characters: "1057-feature-\uAC1C\uC778\uC77C\uC815-\uC218\uC815-api"
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1087 +/- ##
============================================
+ Coverage 74.42% 74.53% +0.11%
- Complexity 1227 1231 +4
============================================
Files 399 401 +2
Lines 5524 5549 +25
Branches 440 440
============================================
+ Hits 4111 4136 +25
Misses 1220 1220
Partials 193 193
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘보고갑니다! @builder부분에 대해서 생각할 수 있도록 알려주셔서 감사합니다.
Assertions.assertThat(privateSchedule.getGroupId()).isEqualTo(scheduleGroup.getId()); | ||
Assertions.assertThat(privateSchedule.isAlarm()).isEqualTo(reqDto.isAlarm()); | ||
} | ||
|
||
@Test | ||
@Transactional | ||
@DisplayName("일정 그룹이 없는 경우 404") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
displayname - 404로 쓰신 부분 너무 좋네요. follow하겠습니다.
scheduleGroup); | ||
PrivateScheduleUpdateReqDto reqDto = PrivateScheduleUpdateReqDto.builder() | ||
.eventTag(null) | ||
.techTag(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
성공하는 로직에서 id가 왜 4인지 아직도 궁금하네요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 궁금합니다
|
||
@Builder | ||
public PrivateScheduleUpdateReqDto(EventTag eventTag, JobTag jobTag, TechTag techTag, String title, String content, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@builder가 들어간 생성자의 타입을 private으로 통일하기로 해서 수정요청드립니다!
.header("Authorization", "Bearer " + accessToken) | ||
.contentType(MediaType.APPLICATION_JSON) | ||
.content(objectMapper.writeValueAsString(reqDto))) | ||
.andExpect(status().isBadRequest()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트에서 에러가 났을 경우, 수정이 안일어났으면 안일어났는지 한번 확인하는건 선택사항일 것 같아요
📌 개요
💡Issue 번호