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 @@ -9,7 +9,8 @@ public record PersonalEventResponse(
LocalDateTime startDateTime,
LocalDateTime endDateTime,
Boolean isAdjustable,
String calendarId
String calendarId,
String googleEventId
) {

public static PersonalEventResponse fromEntity(PersonalEvent event) {
Expand All @@ -19,7 +20,8 @@ public static PersonalEventResponse fromEntity(PersonalEvent event) {
event.getStartTime(),
event.getEndTime(),
event.getIsAdjustable(),
event.getCalendarId()
event.getCalendarId(),
event.getGoogleEventId()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void createPersonalEvent() throws Exception {
PersonalEventResponse personalEventResponse = new PersonalEventResponse(1L, "title",
LocalDateTime.of(2025, 2, 2, 10, 0),
LocalDateTime.of(2025, 2, 2, 12, 0),
false, "testCalendarId");
false, "testCalendarId", "testGoogleEventId");
given(personalEventService.createWithRequest(any())).willReturn(personalEventResponse);
MvcResult result = mockMvc.perform(post("/api/v1/personal-event").
contentType(MediaType.APPLICATION_JSON)
Expand Down
Loading